Skip to content

Resolve "Create a method to for Job Class instance removal"

Hunter Stewart requested to merge 377898-remove-job-instances into master

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:

  1. Its expected queue (FooWorker.queue).
  2. 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.

Related to #377898 (closed)

Merge request reports