Skip to content

Instantly share code, notes, and snippets.

@losnir
Created March 7, 2019 14:48
Show Gist options
  • Save losnir/2f4350f74c677b956b967a9bc1ce9bd5 to your computer and use it in GitHub Desktop.
Save losnir/2f4350f74c677b956b967a9bc1ce9bd5 to your computer and use it in GitHub Desktop.
job "dummy-batch-job" {
datacenters = ["us-east-1"]
type = "batch"
periodic {
cron = "*/1 * * * * *"
prohibit_overlap = true
}
group "monitor" {
count = 1
task "monitor" {
driver = "docker"
config {
image = "spaster/alpine-sleep:latest"
}
resources {
cpu = 256
memory = 64
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment