-
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
workflow-state: query latest task instance #5144
Conversation
5a1dfbd
to
e37bc89
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.
LGTM. One TODO to resolve / punt.
Needs rebasing onto 8.0.x. 8.1.x 8.2.x
# TODO - NEED TO ADD submit_num TO THE task_outputs TABLE SO WE CAN | ||
# TELL WHICH IS THE LATEST FLOW-INSTANCE (like state_met above). |
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.
TODO: here or later?
if self.args['status']: | ||
return self.checker.task_state_met( | ||
self.args['task'], self.args['cycle'], self.args['status']) | ||
elif self.args['message']: |
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 should consider erroring if both status
and message
are defined, otherwise it may look as though this is supported. Or alternatively do both, kinda valid to poll for succeeded
plus a custom output e.g. "succeeded with this outcome"?
e37bc89
to
63a7fa6
Compare
Rebased to 8.0.x |
@hjoliver, can you poke this onto 8.2.x (I think 8.2.x is currently master) |
Closing this as superseded by #5809 |
When a task gets updated in the task states table, update the flow numbers too.
Close #5143
Check List
CONTRIBUTING.md
and added my name as a Code Contributor.setup.cfg
andconda-environment.yml
.CHANGES.md
entry included if this is a change that can affect users