github.com/hernad/nomad@v1.6.112/e2e/rescheduling/input/rescheduling_system.nomad (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "test" {
     5  
     6    datacenters = ["dc1", "dc2"]
     7  
     8    constraint {
     9      attribute = "${attr.kernel.name}"
    10      value     = "linux"
    11    }
    12  
    13    type = "system"
    14  
    15    group "t" {
    16      count = 1
    17  
    18      task "t" {
    19        driver = "raw_exec"
    20  
    21        config {
    22          command = "bash"
    23          args    = ["-c", "lol 5000"]
    24        }
    25      }
    26  
    27      restart {
    28        attempts = 0
    29        delay    = "0s"
    30        mode     = "fail"
    31      }
    32    }
    33  }