WIP: Resolve "Geo: restarting sidekiq doesn't cause BaseSchedulerWorker leases to be returned"
requested to merge 3568-restarting-sidekiq-does-not-cause-scheduler-leases-to-be-returned into master
What does this MR do?
Instead of using Gitlab::ExclusiveLease
, we store the Sidekiq job_id
in the tracking database and use it to check whether a scheduler is running.
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
Restarting Sidekiq doesn't cause BaseSchedulerWorker
leases to be returned.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added -
Tests added for this feature/bug - Review
-
Has been reviewed by UX -
Has been reviewed by Frontend -
Has been reviewed by Backend -
Has been reviewed by Database
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together
What are the relevant issue numbers?
Closes #3568 (closed)