Resolve "Create a method to for Job Class instance removal"
What does this MR do and why?
Why
Create a method to for Job Class instance removal (#377898 - closed)
As originally noted in Clarify Sidekiq Job Class and Jobs Removal Proc... (#377742 - closed), when we're cleaning up Job Classes we no longer want, we want a way to also clear up all instances of a job class from:
- Its expected queue (
FooWorker.queue
). - The scheduled and retry sets (https://docs.gitlab.com/ee/administration/sidekiq/sidekiq_job_migration.html#future-jobs).
What
-
add a new method that deletes job instances from the three queues mentioned above
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #377898 (closed)