Skip to content

Commit

Permalink
Fix unlinking old job out/err files.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjoliver committed Dec 20, 2024
1 parent d4edafa commit e7efac6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cylc/flow/job_runner_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ def _job_submit_impl(
# Create NN symbolic link, if necessary
self._create_nn(job_file_path)
for name in JOB_LOG_ERR, JOB_LOG_OUT:
with suppress(OSError):
os.unlink(os.path.join(job_file_path, name))
with suppress(FileNotFoundError):
os.unlink(os.path.join(os.path.dirname(job_file_path), name))

Check warning on line 572 in cylc/flow/job_runner_mgr.py

View check run for this annotation

Codecov / codecov/patch

cylc/flow/job_runner_mgr.py#L572

Added line #L572 was not covered by tests

# Start new status file
with open(f"{job_file_path}.status", "w") as job_status_file:
Expand Down

0 comments on commit e7efac6

Please sign in to comment.