From 68040652eaa92774a168f559d6b45a28b30a9275 Mon Sep 17 00:00:00 2001 From: tlatorre Date: Tue, 19 Nov 2019 12:11:35 -0600 Subject: update submit-grid-jobs to hopefully only run jobs on nodes which have modules I noticed that many of my jobs were failing with the following error: module: command not found My submit description files *should* only be selecting nodes with modules because of this line: requirements = (HAS_MODULES =?= true) && (OSGVO_OS_STRING == "RHEL 7") && (OpSys == "LINUX") which I think I got from https://support.opensciencegrid.org/support/solutions/articles/12000048518-accessing-software-using-distributed-environment-modules. I looked up what the =?= operator does and it's a case sensitive search. I also found another site (https://support.opensciencegrid.org/support/solutions/articles/5000633467-steer-your-jobs-with-htcondor-job-requirements) which uses the normal == operator. Therefore, I'm going to switch to the == operator and hope that fixes the issue. --- utils/submit-grid-jobs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/submit-grid-jobs') diff --git a/utils/submit-grid-jobs b/utils/submit-grid-jobs index 1fa015b..469fb0c 100755 --- a/utils/submit-grid-jobs +++ b/utils/submit-grid-jobs @@ -119,7 +119,7 @@ log = @log # The below are good base requirements for first testing jobs on OSG, # if you don't have a good idea of memory and disk usage. -requirements = (HAS_MODULES =?= true) && (OSGVO_OS_STRING == "RHEL 7") && (OpSys == "LINUX") +requirements = (HAS_MODULES == True) && (OSGVO_OS_STRING == "RHEL 7") && (OpSys == "LINUX") request_cpus = 1 request_memory = 1 GB request_disk = 1 GB -- cgit