Skip to content

Commit

Permalink
Max Job Submission Update - PBS
Browse files Browse the repository at this point in the history
Update the condition of PBS output check to determine if there was a maximum number of jobs submitted
  • Loading branch information
calvinp0 committed Dec 14, 2023
1 parent 6ec3439 commit 79ba969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc/job/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 79ba969

Please sign in to comment.