Manage sidekiq-cluster through bin/background_jobs
We're looking forward to default to using sidekiq-cluster instead sidekiq, though currently bin/background_jobs starts bundle exec sidekiq directly at:
-
GDK though
bin/background_jobs start_foreground -
Source installations through
bin/background_jobs restart
Proposal
- Rollout
bin/background_jobs start_foregroundchanges for startingsidekiq-cluster(through ENV var or directsidekiq-clustercall - I'm leaning towards the former considering it'd be good to have a way to disablesidekiq-clusterif something isn't right locally). - Make sure Source installations won't receive this change when emitting
bin/background_jobs restart - As a follow-up, after releasing this for GDK and Core, we could move towards Source installations.
Note: Important to consider that all commands will need to work for the sidekiq-cluster (e.g. restart).
Old description.
From gitlab-org/gitlab#34396 (closed):
Deprecate or rewrite/remove `bin/background_jobs` in favor of `ee/bin/sidekiq-cluster`. Perhaps for now it could simply forward to or alias `sidekiq-cluster`.
Edited by Oswaldo Ferreira