Skip to content

Sidekiq workers get automatically re-enabled when disabled from the UI

Summary

Sidekiq workers that are disables in the UI https://gitlab.example.com/admin/background_jobs get automatically re-enabled.

Steps to reproduce

  1. Navigate to the admin area -> monitoring -> background_jobs (https://gitlab.example.com/admin/background_jobs)
  2. Click the cron tab
  3. Disable a worker (we tested import_export_project_cleanup_worker and stuck_import_jobs_worker)
  4. Refresh the page and notice that after a few minutes, the are re-enabled

What is the current bug behavior?

The Sidekiq workers get automatically re-enabled after a few minutes

What is the expected correct behavior?

The Sidekiq workers should stay disabled until they are re-enabled

Links

Customer ticket: https://gitlab.zendesk.com/agent/tickets/139626 (internal use)

Also reported here: #5874 (comment 103804538)

Reproduced on 12.4.3