github.com/bigcommerce/nomad@v0.9.3-bc/e2e/taskevents/input/failed_sibling.nomad (about)

     1  job "failed_sibling" {
     2    type         = "service"
     3    datacenters  = ["dc1"]
     4  
     5    group "failed_sibling" {
     6      restart {
     7        attempts = 0
     8      }
     9    
    10      # Only the task named the same as the job has its events tested.
    11      task "failed_sibling" {
    12        driver = "raw_exec"
    13        config {
    14          command = "sleep"
    15          args    = ["1000"]
    16        }
    17      }
    18  
    19      task "failure" {
    20        driver = "raw_exec"
    21        config {
    22          command = "/bin/sh"
    23          args    = ["-c", "sleep 1 && exit 99"]
    24        }
    25      }
    26    }
    27  }