-
Notifications
You must be signed in to change notification settings - Fork 95
job log retrieval: configurable success condition #7052
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
base: master
Are you sure you want to change the base?
job log retrieval: configurable success condition #7052
Conversation
| return | ||
|
|
||
| try: | ||
| host = get_host_from_platform(platform, bad_hosts=self.bad_hosts) |
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.
Split this try block into two so tools like mypy can tell that platform cannot be undefined.
(see the before part of the diff)
37103d6 to
5aae063
Compare
5aae063 to
41c1e9d
Compare
|
Converted to draft as a newly added feature (#6933) needs to be updated in response to this.... ... done |
41c1e9d to
47ce08f
Compare
| job_log_present = all( | ||
| (Path(local_log_dir) / file).exists() | ||
| for file in [ | ||
| # the files which are used to indicate that job log retrieval | ||
| # has completed | ||
| 'job.out', | ||
| *platform['retrieve job log expected files'], | ||
| ] | ||
| ) |
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.
With this PR, the condition we use to determine whether job log retrieval has completed can also take into account these configured files. The cylc cat-log logic should also respect this.
* Presently, job log retrieval is considered successful when the `job.out` file appears, and additionally the `job.err` file if the job failed. * This commit adds a new configuration to allow additional files to be specified. * This will help with a MO platform where the job epilogue file is written asynchronously, so may only appear some time after the `job.out` file.
47ce08f to
0766817
Compare
job.outfile appears, and additionally thejob.errfile if the jobfailed.
specified.
written asynchronously, so may only appear some time after the
job.outfile.
Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfg(andconda-environment.ymlif present).?.?.xbranch.