homelab/nomad-job/batch/batch-rutorrent.nomad

32 lines
594 B
Plaintext
Raw Permalink Normal View History

job "batch-rutorrent" {
datacenters = ["hetzner"]
priority=50
type="batch"
meta {
forcedeploy="0"
}
periodic {
2023-12-03 09:16:49 +00:00
crons = ["0 * * * *"]
prohibit_overlap = true
}
group "batch-rutorrent" {
task "cleanForwardFolder" {
driver= "docker"
config {
2024-03-17 17:58:24 +00:00
image = "docker.service.consul:5000/library/alpine"
volumes = [
"/mnt/hetzner/storagebox/file/forward:/file"
]
command = "find"
args = [
"/file",
"-empty",
"-type",
"d",
"-delete"
]
}
}
}
}