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

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