RestartTask assumes that task slugs are unique instance-wide
- Create two processes.
- Restart the
initialisation
task on one process. Assuming you had a clean DB before, the old task gets renamed toinitialisation_old1
. - Restart the
initialisation
task on the other process. The old task gets renamed toinitialisation_old2
, instead ofinitialisation_old1
as expected. - Retry one of the processes.
- Restart the
initialisation
task on that second run. It is againinitialisation_old1
. - Cry.
RestartTask
filters existing tasks by run when determining which suffix to add, but not by process!