-
Notifications
You must be signed in to change notification settings - Fork 1
/
weather.nomad
52 lines (46 loc) · 920 Bytes
/
weather.nomad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
job "weather" {
affinity {
attribute = "${attr.unique.hostname}"
value = "inky"
weight = 100
}
constraint {
attribute = "${attr.unique.hostname}"
value = "inky"
}
meta {
team = "inky"
sdk = "python3"
every = "5min"
}
periodic {
crons = ["*/15 * * * * *"]
prohibit_overlap = true
time_zone = "Europe/Rome"
}
type = "batch"
datacenters = ["dc1"]
group "weather" {
ephemeral_disk {
migrate = true
size = 100
sticky = true
}
task "weather" {
driver = "raw_exec"
user = "root"
config {
command = "/usr/bin/python3"
args = ["/home/becker/inky/examples/phat/weather-phat.py"]
}
resources {
cpu = 256
memory = 128
}
logs {
max_files = 5
max_file_size = 5
}
}
}
}