Skip to content
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

Don't Update Terminal Jobs On Cancel/Reprioritise #4043

Merged
merged 2 commits into from
Nov 14, 2024

Conversation

d80tb7
Copy link
Collaborator

@d80tb7 d80tb7 commented Nov 12, 2024

The scheduler ingester was being quite naive when dealing requestCancel/requestReprioritize/requestPreempt. Essentially it was updating all jobs, even those in a terminal state. As terminal jobs cannot be cancelled, reprioritized or preempted this could mean that many more rows were updated that was strictly necessary.

This change addresses that by ensuring that such updates filter to active jobs only.

Signed-off-by: Chris Martin <chris@cmartinit.co.uk>
@d80tb7 d80tb7 enabled auto-merge (squash) November 14, 2024 12:47
@d80tb7 d80tb7 merged commit a53cf7f into master Nov 14, 2024
28 of 29 checks passed
@d80tb7 d80tb7 deleted the f/chrisma/more-efficient-cancel-2 branch November 14, 2024 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants