Class: EmailReceiverWorker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
app/workers/email_receiver_worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(raw) ⇒ Object


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

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

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