Nomad, run different instances of the same task in sequence

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 {
        ...
	}
}

@nico_ntrax delayed sequences isn’t really a well-supported workflow in Nomad (see open issues #419 and #545). The update block is specifically for updating an already running task.

But I see a service block in your job specification. Can you maybe explain the use case you have here in more detail?