-
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
batch system -> job runner #3992
Conversation
optional string batch_sys_job_id = 9; | ||
optional string batch_sys_name = 10; | ||
optional string job_id = 9; | ||
optional string job_runner_name = 10; |
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.
@dwsutherland Can I get a quick check from you that the GraphQL and protobuf stuff has been done correctly? (this commit b64822c and this one 7a23e2f#diff-3c027c5232fb05de824ca58eb160f34cd3e253500824026046cbf56fc526431a)
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.
Looks good to me, as long as the instructions at the top were followed, the binary used to generate the module is the same version protobuf, and tests pass 👍
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.
The diff in the generated module looks appropriate.. Will re-generate on review and see if there are any changes 👍
and batch submit command template -> job runner command template
Deprecate batch_sys event handler templates %(batch_sys_job_id)s -> %(job_id)s %(batch_sys_name)s -> %(job_runner_name)s
Add test for %(batch_sys_job_id)s -> %(job_id)s and %(batch_sys_name)s -> %(job_runner_name)s
The warning about using deprecated "%(batch_sys_job_id)s" etc in event handlers now occurs on cylc validate
:toctree: batch-sys-handlers | ||
:template: automodule_batch_sys_handlers.rst | ||
:toctree: job-runner-handlers | ||
:template: automodule_job_runner_handlers.rst |
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.
Note, this is the file :template:
is pointing at - https://github.com/cylc/cylc-doc/blob/master/src/_templates/automodule_batch_sys_handlers.rst
cylc/flow/task_events_mgr.py
Outdated
@@ -1125,22 +1127,27 @@ def _setup_custom_event_handlers(self, itask, event, message): | |||
quote(str(self.uuid_str)), | |||
EventData.TryNum.value: | |||
itask.get_try_num(), | |||
# next 2 are deprecated - still here for back compat: |
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.
Lesson learned from Cylc 5/6.
Back compat comments make sense at the time, but further down the road no-one can remember why they were added, when the change was made or when the support should be removed.
Suggest marking comments with BACK COMPAT
so they can be grepped for, there doesn't seem to be a standard for this so we get to invent one.
# next 2 are deprecated - still here for back compat: | |
# BACK COMPAT | |
# For: Cylc <= 7 | |
# Remove at: Cylc9 - pending announcement of upcoming deprecation | |
# https://github.com/cylc/cylc-flow/pull/3992 | |
# next 2 (JobID_old, JobRunnerName_old) are deprecated |
Looks good, very thorough! |
The failed test |
Plus tidy & remove remaining references to obsoleted [test battery] config section
|
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.
Looks good 👍
These changes close #3910. Yikes.
Global config change:
[platforms][X]batch system
->[platforms][X]job runner
[platforms][X]batch submit command template
->[platforms][X]job runner command template
Plus: Change all permutations of
batch system
,batch_sys
etc to an equivalentjob runner
, apart from wherebatch system
refers to the workflow config item[runtime][X][job]batch system
.I've tried to batch the changes into somewhat digestible commits for reviewing.
Requirements check-list
CONTRIBUTING.md
and added my name as a Code Contributor.