-
Avoid race condition when stealing a background migration · 39b96f02Grzegorz Bizon authored
We first pop a job from the Sidekiq queue / scheduled set and only if this has been successfully deleted we process the job. This makes it possible to minimize a possibility of a race condition happening.
39b96f02
×