Skip to content

Commit

Permalink
Update cylc/flow/task_job_mgr.py
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Sanders <oliver.sanders@metoffice.gov.uk>
  • Loading branch information
wxtim and oliver-sanders committed Feb 3, 2025
1 parent 31fd08f commit 0c110b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cylc/flow/task_job_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,8 @@ def _manip_task_jobs_callback(
):
LOG.error(
f'Task {ctx.cmd[-1]} failed because task log directory'
f'\n {"/".join(ctx.cmd[-2:])}\n has been removed.')
f'\n{"/".join(ctx.cmd[-2:])}\nhas been removed.'
)
# A dict for easy reference of (CYCLE, NAME, SUBMIT_NUM) -> TaskProxy
#
# Note for "reload": A TaskProxy instance may be replaced on reload, so
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_task_job_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,6 @@ async def test_poll_job_deleted_log_folder(

assert (
'Task bar failed because task log directory'
'\n foo/bar\n has been removed.'
'\nfoo/bar\nhas been removed.'
in caplog.messages
)

0 comments on commit 0c110b3

Please sign in to comment.