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
- Navigate to the admin area -> monitoring -> background_jobs (
https://gitlab.example.com/admin/background_jobs
) - Click the
cron
tab - Disable a worker (we tested
import_export_project_cleanup_worker
andstuck_import_jobs_worker
) - 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