-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Stop future allocations when job is deleted #24669
Comments
Also https://developer.hashicorp.com/nomad/api-docs/jobs#list-job-allocations seems to not work with batch job (it seems) apologies for dumping all of the issues here, I'll create separate issues later. |
Re-reading your post here now that I'm somewhere I can read screenshots... the allocations you're seeing pending are the allocations of child jobs. Removing the base job doesn't remove running child jobs because once they've been dispatched they're treated as entirely separate jobs with their own lifecycle. This is what allows the scheduler to handle allocation failures for each child independently. The |
I am unsure why this is not the default behavior, why doe we not cancel all pending and running allocation if the job itself is stopped and purged.
Eg. I have deleted the main job, i have these orphan allocations running around. Why this this even considered? I cannot think of any usecase that this behaviour would be useful.
The text was updated successfully, but these errors were encountered: