-
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
Add run mode skip to cylc show #6554
base: master
Are you sure you want to change the base?
Conversation
04bd7b1
to
b01e496
Compare
bfa3254
to
71e3f59
Compare
9c2f350
to
060a20a
Compare
broaden the definition of task-mode Save workflow states to the runtime config object.
fixed TUI test fix a broken functional test
Co-authored-by: Oliver Sanders <[email protected]>
16640a8
to
4ca26a0
Compare
…w it to digest strings in any state of capitalization
Co-authored-by: Ronnie Dutta <[email protected]>
Co-authored-by: Ronnie Dutta <[email protected]>
UI accompaniment: cylc/cylc-ui#2057 |
# If the workflow mode is simulation or dummy always | ||
# override the task config: | ||
workflow_run_mode = RunMode.get(self.options) | ||
if workflow_run_mode.value in WORKFLOW_ONLY_MODES: | ||
rtcfg['run mode'] = workflow_run_mode.value |
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.
FYI broadcasting a run mode of live or skip seems to override this
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.
That's correct right?
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.
Shouldn't be able to broadcast task run mode = live when the workflow is running in simulation or dummy mode? Not that it matters too much
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.
Ah right, yes. Unfortunately rather hard to prevent but will result in run mode
being set (and reported) with an erroneous value :(
async def test_task_run_mode_changes(flow, scheduler, start, capsys): | ||
"""Broadcasting a change of run mode changes run mode shown by cylc show. | ||
""" | ||
opts = SimpleNamespace( |
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.
We have the ShowOptions
object that can be used for this. That way you can omit defaults and it will ensure the options you provide are correct.
cylc-flow/cylc/flow/scripts/show.py
Line 256 in e87e8ce
ShowOptions = Options(get_option_parser()) |
Note
schema changeChange to the Cylc GraphQL schema
- changed
TaskRunMode
to include simulation and dummy modesCheck List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).