Skip to content

Add Rake task to migrate queued jobs

What does this MR do and why?

Adds a Rake task to allow users to migrate jobs when Sidekiq routing rules and Sidekiq queue groups (queues that Sidekiq is listening to) are changed.

Previously, Sidekiq would have to listen to both new and old queues, wait until the old queues to be empty, and update Sidekiq to listen to new queues only. Now, by running gitlab-rake gitlab:sidekiq:migrate_queued_jobs gitlab:sidekiq:migrate_future_jobs:schedule gitlab:sidekiq:migrate_future_jobs:retry just after updating the routing rules, the job migrations could happen in the background without waiting and updating Sidekiq config later on.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Gregorius Marco

Merge request reports