Skip to content

Commit

Permalink
Improve error logging for remote contact file workl
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Jun 18, 2024
1 parent 2732f53 commit d4b4a23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cylc/flow/workflow_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ def _is_process_running(
out, err = proc.communicate(timeout=10, input=metric)
except TimeoutExpired:
raise CylcError(
f'Cannot determine whether workflow is running on {host}.'
f'Attempt to determine whether workflow is running on {host}'
' timed out after 10 seconds.'
)

if proc.returncode == 2:
Expand All @@ -435,7 +436,7 @@ def _is_process_running(
error = False
if proc.returncode:
# the psutil call failed in some other way e.g. network issues
LOG.debug(
LOG.warning(
f'$ {cli_format(cmd)} # returned {proc.returncode}\n{err}'
)
error = True
Expand Down

0 comments on commit d4b4a23

Please sign in to comment.