Add more accurate way of counting background migrations
Sidekiq::Queue only counts currently enqueued jobs. For background migrations, most jobs are instead scheduled and therefore in Sidekiq::ScheduledSet. This is because if we enqueued them all, we'd process them as fast as Sidekiq could pick them up, which could: 1. Block other jobs from processing. 2. Overwhelm the database.
Showing
Please register or sign in to comment