-
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 workflow-state command and xtrigger. #5809
Conversation
ab469a6
to
c5ede84
Compare
Note also: #6030 |
0274a3e
to
178c3d1
Compare
113942b
to
697681f
Compare
|
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.
Seems reasonable; Given the amount on your plate I will start drafting tests for this so that we can ram it through.
I've added the following:hjoliver#50 - It's not a complete set of tests, but I've covered some of this. I'll do more tomorrow. If you want to get them in feel free to merge though.
ffc2b32
to
b32f223
Compare
This comment was marked as resolved.
This comment was marked as resolved.
One-line fix pushed for the function signature advice (we shouldn't advise adding all the null args with |
And another small commit handles "None" properly in xtrigger defintions, just in case someone does it. |
That would be because it was interpreting the string "None" as an alternate run-dir. My previous commit will prevent that too. |
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.
I've had a really decent go at breaking this, and run out of ideas.
@MetRonnie - final comments addressed. Merge? 🙏 |
b06684f
to
1361908
Compare
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.
Alright, think we're nearly there. However there is this still outstanding? hjoliver#54
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.
💫
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.
--status
and--output
queries the same, with respect to polling vs one-off queries--flow
optionretain--message
option (task message) as well as--output
(trigger name) to avoid breaking existing polling workflowsMinor db changeChange to the workflow database structure
: Format of
outputs
column intask_outputs
table has changed from Cylc 8.0.0 where it was a stringified list of task messages, to a stringified dictionary of the format{<output label>: <task message>}
(like how it was in Cylc 7).The command and xtrigger now take
WORKFLOW//CYCLE/TASK:SELECTOR
as an arg.SELECTOR
can be a status or an output. With--output
, or if not a valid status, it is taken as an output; otherwise a status.Any query will be polled for if no matching result is found.
A good test case:
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
(andconda-environment.yml
if present).CHANGES.md
entry included if this is a change that can affect users?.?.x
branch.