You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For at least system jobs (and probably service as well), if you have a non-leader task with sidecar=false, and no hook specified, it is constantly restarted when it exits with code 0.
Reproduction steps
Create a system job with two tasks. One is the actual main task (optionally set leader=true on this one for clarity), with no lifecycle defined. The second is intended as a oneshot with a lifecycle with sidecar=false, and hook unspecified.
Expected Result
The second task runs until it exits with code 0, with no restarts.
Actual Result
The second task is constantly restarted after every exit (frequency depending on your restart policy defaults). If you specify a hook, then things behave as expected.
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered:
Nomad version
Operating system and Environment details
Issue
For at least system jobs (and probably service as well), if you have a non-leader task with
sidecar=false
, and no hook specified, it is constantly restarted when it exits with code 0.Reproduction steps
Create a
system
job with two tasks. One is the actual main task (optionally setleader=true
on this one for clarity), with no lifecycle defined. The second is intended as a oneshot with a lifecycle withsidecar=false
, andhook
unspecified.Expected Result
The second task runs until it exits with code 0, with no restarts.
Actual Result
The second task is constantly restarted after every exit (frequency depending on your restart policy defaults). If you specify a hook, then things behave as expected.
Job file (if appropriate)
Nomad Server logs (if appropriate)
Nomad Client logs (if appropriate)
The text was updated successfully, but these errors were encountered: