Class: ServiceDeskEmailReceiverWorker

Inherits:
EmailReceiverWorker show all
Includes:
ApplicationWorker
Defined in:
app/workers/service_desk_email_receiver_worker.rb

Overview

rubocop:disable Scalability/IdempotentWorker

Constant Summary

Constants included from ApplicationWorker

ApplicationWorker::LOGGING_EXTRA_KEY

Constants included from WorkerAttributes

WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES

Instance Method Summary collapse

Methods included from Gitlab::SidekiqVersioning::Worker

#job_version

Methods included from WorkerContext

#with_context

Instance Method Details

#perform(raw) ⇒ Object


6
7
8
9
10
11
12
13
14
# File 'app/workers/service_desk_email_receiver_worker.rb', line 6

def perform(raw)
  return unless ::Gitlab::ServiceDeskEmail.enabled?

  begin
    Gitlab::Email::ServiceDeskReceiver.new(raw).execute
  rescue => e
    handle_failure(raw, e)
  end
end