Skip to content

RestartTask assumes that task slugs are unique instance-wide

  1. Create two processes.
  2. Restart the initialisation task on one process. Assuming you had a clean DB before, the old task gets renamed to initialisation_old1.
  3. Restart the initialisation task on the other process. The old task gets renamed to initialisation_old2, instead of initialisation_old1 as expected.
  4. Retry one of the processes.
  5. Restart the initialisation task on that second run. It is again initialisation_old1.
  6. Cry.

RestartTask filters existing tasks by run when determining which suffix to add, but not by process!