Skip to content

Commit

Permalink
Quickfix htcondor usage at CERN.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Jan 5, 2024
1 parent fdd121e commit 5974dec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions columnflow/tasks/framework/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,11 +621,12 @@ def htcondor_job_config(self, config, job_num, branches):
# some htcondor setups require a "log" config, but we can safely use /dev/null by default
config.log = "log.txt" if self.htcondor_logs else "/dev/null"

# use cc7 at CERN (https://batchdocs.web.cern.ch/local/submit.html)
# use el9 at CERN
if self.htcondor_flavor == "cern":
config.custom_content.append(("requirements", "(OpSysAndVer =?= \"CentOS7\")"))
# https://batchdocs.web.cern.ch/local/submit.html#os-selection-via-containers
config.custom_content.append(("MY.WantOS", "el9"))

# same on naf with case insensitive comparison (https://confluence.desy.de/display/IS/BIRD)
# use cc7 on naf (https://confluence.desy.de/display/IS/BIRD)
if self.htcondor_flavor == "naf":
config.custom_content.append(("requirements", "(OpSysAndVer == \"CentOS7\")"))

Expand Down

0 comments on commit 5974dec

Please sign in to comment.