16 lines
350 B
Ruby
16 lines
350 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ServiceDeskEmailReceiverWorker < EmailReceiverWorker # rubocop:disable Scalability/IdempotentWorker
|
|
include ApplicationWorker
|
|
|
|
sidekiq_options retry: 3
|
|
|
|
def should_perform?
|
|
::Gitlab::ServiceDeskEmail.enabled?
|
|
end
|
|
|
|
def receiver
|
|
@receiver ||= Gitlab::Email::ServiceDeskReceiver.new(raw)
|
|
end
|
|
end
|