Skip to content

Commit

Permalink
Automatically detect the host OS for the submission scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexx Perloff authored and Alexx Perloff committed May 21, 2020
1 parent f349c5e commit 21e98f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/jobSubmitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def generateStep1(self,job):

def generateExtra(self,job):
job.patterns.update([
("OSVERSION","rhel7" if "el7" in os.uname()[2] else "rhel6"),
("MYDISK",self.disk),
("MYMEMORY",self.memory),
("MYCPUS",self.cpus),
Expand Down
2 changes: 1 addition & 1 deletion scripts/jobExecCondor.jdl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
universe = vanilla
Executable = jobExecCondor.sh
+REQUIRED_OS = "rhel6"
+REQUIRED_OS = "OSVERSION"
+DesiredOS = REQUIRED_OS
request_disk = MYDISK
request_memory = MYMEMORY
Expand Down

0 comments on commit 21e98f9

Please sign in to comment.