-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix unlinking old job out/err files. #6533
Conversation
dc087dd
to
de7a921
Compare
(Note all tests passed, 100% patch coverage, before I committed some non-coding changes with skip-ci) |
Actually, is the unlink really needed if it has been broken this whole time? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing beyond what @MetRonnie said.
Co-authored-by: Ronnie Dutta <[email protected]>
I thought about this. Presumably the code was put in for a reason, and maybe it got broken during Cylc 8 development. In Cylc 7 it was common to re-run from scratch in an existing run directory. Maybe a In Cylc 8, it is still possible to force a re-run from scratch in an existing run dir (delete the .service dir first). I think we have considered it supporting it properly as an option (e.g. to make iterative workflow development a bit quicker and more contained), not sure where we got with that discussion. However:
So, the unlinking code is pretty much useless for background and Slurm jobs. The latter result is presumably down to Slurm itself. I don't have access to other batch systems. SUMMARY: I suspect that sometime in the past we had a job runner that did not generate an empty Options for this PR:
Does Cylc+PBS nuke existing |
PBS does replace any existing out/err files but only when the job completes which can be confusing. More importantly, we rely on the existence of the job.out file to determine whether the job output is present when doing log retrieval so it's essential we remove any old files. |
One question, is there a reason this is going to master and not 8.3.7? Is 8.3.7 not going to exist as 8.4.0 will soon? |
releasing 8.4 this week |
Close #6529
Suppressing OSError here hid a bug:
This fixes the path error and just suppresses FileNotFoundError.
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).?.?.x
branch.