2021-04-08 03:09:23 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module TodosDestroyer
|
|
|
|
class DestroyedIssuableWorker
|
|
|
|
include ApplicationWorker
|
2021-04-30 18:10:09 +00:00
|
|
|
|
2021-07-21 12:09:35 +00:00
|
|
|
data_consistency :always
|
|
|
|
|
2021-04-30 18:10:09 +00:00
|
|
|
sidekiq_options retry: 3
|
2021-04-08 03:09:23 +00:00
|
|
|
include TodosDestroyerQueue
|
|
|
|
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform(target_id, target_type)
|
|
|
|
::Todos::Destroy::DestroyedIssuableService.new(target_id, target_type).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|