homelab/nomad-job/batch-rutorrent.nomad
vincent 2fc86fc14f
All checks were successful
continuous-integration/drone/push Build is passing
fix: run rutoren batch each hour
2023-12-03 10:16:49 +01:00

32 lines
559 B
HCL

job "batch-rutorrent" {
datacenters = ["hetzner"]
priority=50
type="batch"
meta {
forcedeploy="0"
}
periodic {
crons = ["0 * * * *"]
prohibit_overlap = true
}
group "batch-rutorrent" {
task "cleanForwardFolder" {
driver= "docker"
config {
image = "alpine"
volumes = [
"/mnt/hetzner/storagebox/file/forward:/file"
]
command = "find"
args = [
"/file",
"-empty",
"-type",
"d",
"-delete"
]
}
}
}
}