github.com/hernad/nomad@v1.6.112/e2e/taskevents/input/failed_batch.nomad (about)

     1  # Copyright (c) HashiCorp, Inc.
     2  # SPDX-License-Identifier: MPL-2.0
     3  
     4  job "failed_batch" {
     5    type        = "batch"
     6    datacenters = ["dc1"]
     7  
     8    constraint {
     9      attribute = "${attr.kernel.name}"
    10      value     = "linux"
    11    }
    12  
    13    group "failed_batch" {
    14      restart {
    15        attempts = 0
    16      }
    17  
    18      task "failed_batch" {
    19        driver = "raw_exec"
    20  
    21        config {
    22          command = "SomeInvalidCommand"
    23        }
    24      }
    25    }
    26  }