Hi,
In nomad, i have a group that run the same docker task 3 times. How can i execute the run instances of the same task in sequence and giving them a delay of execution? For example the second task starts after 5 minutes from the first and the third 5 minutes after the second. Using “max_parallel = 1” all the three instances runs in the same time.
This is my configuration of the group
group "mygroup" {
count = 3
update {
max_parallel = 1
}
network {
...
}
constraint {
distinct_hosts = true
}
task "mydockertask" {
driver = "docker"
config {
...
}
}
service {
...
}
}