-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Delete non-terminal jobs and subworkflow invocations when cancelling invocation #16252
Merged
mvdbeek
merged 16 commits into
galaxyproject:dev
from
mvdbeek:delete_jobs_when_cancelling_invocation
Nov 14, 2023
Merged
Delete non-terminal jobs and subworkflow invocations when cancelling invocation #16252
mvdbeek
merged 16 commits into
galaxyproject:dev
from
mvdbeek:delete_jobs_when_cancelling_invocation
Nov 14, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nsoranzo
reviewed
Jun 15, 2023
hmm, I guess that's the race condition I anticipated. |
mvdbeek
force-pushed
the
delete_jobs_when_cancelling_invocation
branch
7 times, most recently
from
October 11, 2023 22:06
0c67ecd
to
ea97fe7
Compare
This is ready for review now, the conda unit test is unrelated. |
mvdbeek
force-pushed
the
delete_jobs_when_cancelling_invocation
branch
from
October 12, 2023 10:01
001b7be
to
bd3eb21
Compare
nsoranzo
reviewed
Oct 12, 2023
nsoranzo
reviewed
Oct 12, 2023
nsoranzo
reviewed
Oct 12, 2023
By always fetching the job state from the database.
API / users set invocation to cancelling, scheduler then deletes outputs. This avoids race conditions where the cancelled invocation still generates new jobs.
mvdbeek
force-pushed
the
delete_jobs_when_cancelling_invocation
branch
from
November 13, 2023 15:00
bd3eb21
to
b684ee9
Compare
nsoranzo
reviewed
Nov 13, 2023
nsoranzo
reviewed
Nov 13, 2023
Failed API tests seem relevant. |
yeah, and the crazy thing is reverting 3e4380f fixes this |
ouch |
mvdbeek
force-pushed
the
delete_jobs_when_cancelling_invocation
branch
from
November 14, 2023 08:48
a4df188
to
db9d5b5
Compare
mvdbeek
force-pushed
the
delete_jobs_when_cancelling_invocation
branch
from
November 14, 2023 08:59
a0055ca
to
194f5ad
Compare
mvdbeek
force-pushed
the
delete_jobs_when_cancelling_invocation
branch
from
November 14, 2023 14:12
5e55552
to
2a11420
Compare
Failing tests look unrelated, but I triggered a rerun anyway. |
nsoranzo
approved these changes
Nov 14, 2023
mvdbeek
added
the
highlight/power-user
Included at bottom of user-facing release notes (please use either this or highlight, but not both)
label
Jan 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area/workflows
highlight/power-user
Included at bottom of user-facing release notes (please use either this or highlight, but not both)
kind/enhancement
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Came up as a wish during the last UI/UX call with @nomadscientist. I contemplated making the job deletion part optional, but couldn't think of a reason why we wouldn't make this the only default. No problem to make it configurable though if there is a reason to keep the old default.
Not sure this is completely free of race conditions, but worst case you gotta delete again ? That seems fine.
I think it'd also be nice to have various flavors of bulk deletion (delete all datasets produced by an invocation, delete all non-output datasets, maybe other modalities ?).
How to test the changes?
(Select all options that apply)
License