github.com/smithx10/nomad@v0.9.1-rc1/e2e/taskevents/input/completed_leader.nomad (about)

     1  job "completed_leader" {
     2    type         = "batch"
     3    datacenters  = ["dc1"]
     4  
     5    group "completed_leader" {
     6      restart {
     7        attempts = 0
     8      }
     9    
    10      # Only the task named the same as the job has its events tested.
    11      task "completed_leader" {
    12        driver = "raw_exec"
    13        config {
    14          command = "sleep"
    15          args    = ["1000"]
    16        }
    17      }
    18  
    19      task "leader" {
    20        leader = true
    21        driver = "raw_exec"
    22        config {
    23          command = "sleep"
    24          args    = ["1"]
    25        }
    26      }
    27    }
    28  }