2018-08-11 07:00:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-07-16 18:30:17 +00:00
|
|
|
module TodosDestroyer
|
2020-02-19 18:09:10 +00:00
|
|
|
class ConfidentialIssueWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-07-16 18:30:17 +00:00
|
|
|
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
|
2018-07-16 18:30:17 +00:00
|
|
|
include TodosDestroyerQueue
|
|
|
|
|
2019-05-21 19:20:27 +00:00
|
|
|
def perform(issue_id = nil, project_id = nil)
|
|
|
|
::Todos::Destroy::ConfidentialIssueService.new(issue_id: issue_id, project_id: project_id).execute
|
2018-07-16 18:30:17 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|