2018-08-11 07:00:39 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-08-02 14:16:58 +00:00
|
|
|
module TodosDestroyer
|
2020-02-19 18:09:10 +00:00
|
|
|
class GroupPrivateWorker # rubocop:disable Scalability/IdempotentWorker
|
2018-08-02 14:16:58 +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-08-02 14:16:58 +00:00
|
|
|
include TodosDestroyerQueue
|
|
|
|
|
|
|
|
def perform(group_id)
|
|
|
|
::Todos::Destroy::GroupPrivateService.new(group_id).execute
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|