-
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
cli: non-service jobs on job restart -reschedule
#19147
Merged
Merged
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
lgfa29
force-pushed
the
b-cli-handle-job-restart-types
branch
from
November 23, 2023 04:55
14f823b
to
4c7e24e
Compare
lgfa29
added
backport/1.5.x
backport to 1.5.x release line
backport/1.6.x
backport to 1.6.x release line
labels
Nov 23, 2023
jrasell
approved these changes
Nov 24, 2023
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 although the test failure seems like it could be related and there isa a merge conflict 😬
The `-reschedule` flag stops allocations and assumes the Nomad scheduler will create new allocations to replace them. But this is only true for service jobs. Restarting non-service jobs with the `-reschedule` flag causes the command to loop forever waiting for the allocations to be replaced, which never happens. Allocations for system jobs may be replaced by triggering an evaluation after each stop to cause the reconciler to run again. Batch and sysbatch jobs should not be allowed to be rescheduled as they are expected to run to completion unless stopped.
lgfa29
force-pushed
the
b-cli-handle-job-restart-types
branch
from
November 25, 2023 04:01
96e77cd
to
6f2ea97
Compare
Juanadelacuesta
approved these changes
Nov 27, 2023
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 :)
lgfa29
force-pushed
the
b-cli-handle-job-restart-types
branch
from
November 28, 2023 03:17
8e4719b
to
a7588e6
Compare
Batch jobs are able to be rescheduled without further steps, but sysbatch jobs never receive a replacement allocation so they are still not allowed to be rescheduled.
lgfa29
force-pushed
the
b-cli-handle-job-restart-types
branch
from
November 28, 2023 03:20
a7588e6
to
b21fcde
Compare
This was referenced Nov 29, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
The
-reschedule
flag stops allocations and assumes the Nomad scheduler will create new allocations to replace them. But this is only true for service jobs.Restarting non-service jobs with the
-reschedule
flag causes the command to loop forever waiting for the allocations to be replaced, which never happens.Allocations for system jobs may be replaced by triggering an evaluation after each stop to cause the reconciler to run again.
Batch and sysbatch jobs should not be allowed to be rescheduled as they are expected to run to completion unless stopped.
Closes #19043