Restart a task with a sleep


I have a job with a group and a parameter “count = 5”. So, I’m starting 5 tasks.

Is it possible to run a job without restart all tasks in onetime ?

For example, I would like to restart the job but restart the tasks one by one (with a sleep of 1 minute for example).

Thanks for your help


Hi @frakev,

How do you plan on restarting the allocations and the job? Currently Nomad only supports restarting a single allocation at a time, and doesn’t support restarting an entire job. We do have a draft PR with job restart behaviour, however, this is still being worked on and the UX might change.

jrasell and the Nomad team