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

cli: non-service jobs on job restart -reschedule #19147

Merged
merged 4 commits into from Nov 29, 2023

Commits on Nov 25, 2023

  1. cli: non-service jobs on job restart -reschedule

    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 committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    9bae6e6 View commit details
    Browse the repository at this point in the history
  2. changelog: add entry for #19147

    lgfa29 committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    9c933fd View commit details
    Browse the repository at this point in the history
  3. fix tests

    lgfa29 committed Nov 25, 2023
    Configuration menu
    Copy the full SHA
    6f2ea97 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2023

  1. cli: allow batch job reschedule

    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 committed Nov 28, 2023
    Configuration menu
    Copy the full SHA
    b21fcde View commit details
    Browse the repository at this point in the history