-
Notifications
You must be signed in to change notification settings - Fork 42
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
Flow Run Cancellation #92
Conversation
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'll also need to update the cancel button version check and the mutation we call - the current button simply sets state but there is now a specific cancel_flow_run mutation which handles cancelling/cancelled states.
Ok made those updates @zhen0 - we'll limit this to Core 0.13.0. |
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.
One more small but important change and one question/suggestion.
src/components/CancelButton.vue
Outdated
Upgrade your flow to Prefect 7.3 or higher to enable cancellation. | ||
Your Flow was registered with version {{ flowRun.flow.core_version }} of | ||
Prefect Core; please upgrade to version 0.13.0 or higher and re-register | ||
your Flow to enable cancellation. | ||
</span> | ||
<span v-else-if="flowRun.state !== 'Running'"> |
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.
Do we still want this? I can imagine cases where it might be useful to cancel from a scheduled or submitted flow run?
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 think opening this up isn't a bad idea, let's do it.
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.
Ok - updated to allow cancellation when in a non-finished state.
Co-authored-by: Jenny G <[email protected]>
…hen a flow run is in a finished state
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 @znicholasbrown
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.
Thanks for the changes @znicholasbrown
PR Checklist:
CHANGELOG.md
Describe this PR
Adds a cancellation button to the flow run actions bar too allow cancelling of in-progress runs.