github.com/hernad/nomad@v1.6.112/e2e/periodic/input/simple.nomad (about)

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