• Sean McGivern's avatar
    Add more accurate way of counting background migrations · 3b3d28e0
    Sean McGivern authored
    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.
    3b3d28e0
improve-background-migration-check.yml 129 Bytes