-
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
Updating affinity in job is destructive #25070
Comments
Hi @pawelbeza! Just to refine your bug report a bit, what you're seeing is a destructive update. An in-place update is one where we update the definition of the allocation without touching any running tasks (any easy example of this might be incrementing the But, as you note, it's not behaving as expected! Here's an example of what that looks like with a job update that only updates an affinity block:
And if I run that, I get a destructive update with a new allocation, which isn't right.
I'd be happy to review a PR! We should fix this for |
Thanks for clarifying the issue. I may have misused the term in-place update. You can find the fix here #25109 :) |
Hi there 👋
not sure if that's expected behavior but changing
Affinity
is destructive and it'causig in-place update. It's a weird behavior considering that there is no update onConstraint
changenomad/scheduler/annotate.go
Line 191 in a113258
Would you consider changing this behavior and skipping in-place update when affinity is changed? I could help with the PR
The text was updated successfully, but these errors were encountered: