debian-mirror-gitlab/app/workers/todos_destroyer/confidential_issue_worker.rb

17 lines
428 B
Ruby
Raw Normal View History

2018-11-20 20:47:30 +05:30
# frozen_string_literal: true
2018-11-18 11:00:15 +05:30
module TodosDestroyer
2020-04-08 14:13:33 +05:30
class ConfidentialIssueWorker # rubocop:disable Scalability/IdempotentWorker
2018-11-18 11:00:15 +05:30
include ApplicationWorker
2021-06-08 01:23:25 +05:30
2021-10-27 15:23:28 +05:30
data_consistency :always
2021-06-08 01:23:25 +05:30
sidekiq_options retry: 3
2018-11-18 11:00:15 +05:30
include TodosDestroyerQueue
2019-09-04 21:01:54 +05:30
def perform(issue_id = nil, project_id = nil)
::Todos::Destroy::ConfidentialIssueService.new(issue_id: issue_id, project_id: project_id).execute
2018-11-18 11:00:15 +05:30
end
end
end