Skip to content

Add more accurate way of counting background migrations

Sean McGivern requested to merge improve-background-migration-check into master

What does this MR do?

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.

Closes #204769 (closed).

Merge request reports