Currently, in Nomad, you can set the leader stanza at a task level. However, it would be quite useful to support leader at a job level.
An example case when this can become useful is when you have a task group that submits some amount of work to a queue and another task group which are just workers. Once the work is completed and processed by the first task group and exits, the workers task group should be stopped as well.
Currently, in Nomad, you can set the
leader
stanza at a task level. However, it would be quite useful to support leader at a job level.An example case when this can become useful is when you have a task group that submits some amount of work to a queue and another task group which are just workers. Once the work is completed and processed by the first task group and exits, the workers task group should be stopped as well.