Skip to content

Commit

Permalink
pbs: update connection failed error message
Browse files Browse the repository at this point in the history
* Addresses cylc#6531 on the 8.4.x branch.
* Cylc 8 port of 7b6d8cb
* Update the PBS job runner to reflect a change in error message.
* The new pattern will also match the old format.
  • Loading branch information
oliver-sanders committed Feb 3, 2025
1 parent 749b8ce commit 4a6d36b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changes.d/6586.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Update PBS job runner to reflect error message change. This change
continues to support older PBS versions.
2 changes: 1 addition & 1 deletion cylc/flow/job_runner_handlers/pbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class PBSHandler:
# N.B. The "qstat JOB_ID" command returns 1 if JOB_ID is no longer in the
# system, so there is no need to filter its output.
POLL_CMD = "qstat"
POLL_CANT_CONNECT_ERR = "Connection refused"
POLL_CANT_CONNECT_ERR = "cannot connect to server"
REC_ID_FROM_SUBMIT_OUT = re.compile(r"^\s*(?P<id>\d+)", re.M)
SUBMIT_CMD_TMPL = "qsub '%(job)s'"
TIME_LIMIT_DIRECTIVE = "-l walltime"
Expand Down

0 comments on commit 4a6d36b

Please sign in to comment.