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.

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 image.png image.png
self-managed image.png image.png

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

  1. You can check the state of the worker here http://localhost:3000/admin/background_jobs
  2. Check the default state of the gitlab_subscriptions_offline_cloud_license_provision_worker worker depending on the GitLab instance mode.
    1. SaaS
      1. Restart GitLab with

        export GITLAB_SIMULATE_SAAS=1; gdk restart
      2. See that gitlab_subscriptions_offline_cloud_license_provision_worker is disabled by default

    2. Self-managed (SM)
      1. Restart GitLab with

        export GITLAB_SIMULATE_SAAS=0; gdk restart
      2. See that the gitlab_subscriptions_offline_cloud_license_provision_worker is enabled by default

Resolves https://gitlab.com/gitlab-org/gitlab/-/issues/503190

Edited by Lukas Wanko

Merge request reports

Loading