From 79ba969572adfb5773e8b9f88dd0e200bc5ddffe Mon Sep 17 00:00:00 2001 From: Calvin Date: Tue, 12 Dec 2023 17:18:02 +0200 Subject: [PATCH] Max Job Submission Update - PBS Update the condition of PBS output check to determine if there was a maximum number of jobs submitted --- arc/job/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arc/job/local.py b/arc/job/local.py index 23280acf9d..5589738fcf 100644 --- a/arc/job/local.py +++ b/arc/job/local.py @@ -256,7 +256,7 @@ def submit_job(path: str, submit_filename=submit_filename, recursion=True, ) - if cluster_soft.lower() == 'pbs' and any('qsub: would exceed' in err_line for err_line in stderr): + if cluster_soft.lower() == 'pbs' and (any('qsub: would exceed' in err_line for err_line in stderr ) or any('qsub: Maximum number of jobs' in err_line for err_line in stderr)): logger.warning(f'Max number of submitted jobs was reached, sleeping...') time.sleep(5 * 60) submit_job(path=path,