hyperbadger / nomad-pipeline

Run pipeline-style workloads in Nomad
MIT License
41 stars 2 forks source link

Set a task group as a leader in a job #2

Closed waquidvp closed 2 years ago

waquidvp commented 2 years ago

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.