Disable OfflineCloudLicenseProvisionWorker for SaaS
What does this MR do and why?
After ensuring that not all Sidekiq workers get activated every minute and by default, we can now use the possibility of disabling the OfflineCloudLicenseProvisionWorker for SaaS. With that, this worker is no longer a no-operation worker because it doesn't get executed.
References
Please include cross links to any resources that are relevant to this MR This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
- Preparation for this MR: Allow Sidekiq workers to be disabled by default... (!166652 - merged)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Offline cloud license provision worker is now disabled by default for SaaS
| Before | After | |
|---|---|---|
| SaaS | ![]() |
![]() |
| self-managed | ![]() |
![]() |
How to set up and validate locally
Preparation
Execute git merge --squash origin/lw/488887-allow-disabling-sidekiq-workers-via-configuration to be able to use the feature which get introduced by the above mentioned MR.
Check that the default state of workers can now be disabled by default
- You can check the state of the worker here http://localhost:3000/admin/background_jobs
- Check the default state of the
gitlab_subscriptions_offline_cloud_license_provision_workerworker depending on the GitLab instance mode.-
SaaS
-
Restart GitLab with
export GITLAB_SIMULATE_SAAS=1; gdk restart -
See that
gitlab_subscriptions_offline_cloud_license_provision_workeris disabled by default
-
-
Self-managed (SM)
-
Restart GitLab with
export GITLAB_SIMULATE_SAAS=0; gdk restart -
See that the
gitlab_subscriptions_offline_cloud_license_provision_workeris enabled by default
-
-
SaaS
Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/503190



