Add extra job to the database before deleting one, to ensure that job deletion doesn't do anything with other jobs (and their tasks). No functional changes to Flamenco itself.
go fmt ./...
RequeueTasksOfWorker
RequeueActiveTasksOfWorker