579-pilot-rename-periodic-tasks (part 2, delete)

by infinitewarp
macOS ◆ xterm-256color ◆ bash 243 views

Instead of just renaming the old tasks, delete them if new versions already exist.

What I’m doing here:

  • reset the DB
  • switch to the last released version of the pilot before this change
  • initialize the DB
  • check for the tasks (should be none)
  • run the beat on the old configs, and stop it.
  • check for the tasks (should have old not-pilot names)
  • switch to the new code
  • run the beat on the new configs, and leave it running in the background
  • check for the tasks (should have old not-pilot and new pilot names)
  • run the latest migrations while the beat is running
  • check for the tasks (should have only new pilot names)
  • wait two minutes to be sure the beat has time to run the two-minute periodic tasks
  • stop the beat
  • check for the tasks (should have only new pilot names)