github.com/hernad/nomad@v1.6.112/e2e/scheduler_sysbatch/input/sysbatch_periodic.nomad (about)

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