github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/e2e/periodic/input/simple.nomad (about)

     1  job "periodic" {
     2    datacenters = ["dc1"]
     3    type        = "batch"
     4  
     5    constraint {
     6      attribute = "${attr.kernel.name}"
     7      operator  = "set_contains_any"
     8      value     = "darwin,linux"
     9    }
    10  
    11  
    12  
    13    periodic {
    14      cron             = "* * * * *"
    15      prohibit_overlap = true
    16    }
    17  
    18    group "group" {
    19      task "task" {
    20        driver = "docker"
    21  
    22        config {
    23          image   = "busybox:1"
    24          command = "/bin/sh"
    25          args    = ["-c", "sleep 5"]
    26        }
    27      }
    28    }
    29  }