From 7dc484a553c0dabfd4b460d5c3e8f56c8e8ac5a6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 17 Sep 2018 17:16:44 -0700 Subject: Full name for the job --- .../jobs/action_mailroom/deliver_inbound_email_to_mailbox.rb | 10 ---------- .../action_mailroom/deliver_inbound_email_to_mailroom_job.rb | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 app/models/jobs/action_mailroom/deliver_inbound_email_to_mailbox.rb create mode 100644 app/models/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb diff --git a/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailbox.rb b/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailbox.rb deleted file mode 100644 index 954fc4bd71..0000000000 --- a/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailbox.rb +++ /dev/null @@ -1,10 +0,0 @@ -class ActionMailroom::DeliverInboundEmailToMailroomJob < ApplicationJob - queue_as :action_mailroom_inbound_email - - # Occasional `SSL_read: decryption failed or bad record mac` that resolve on retry - retry_on OpenSSL::SSL::SSLError - - def perform(inbound_email) - ApplicationMailbox.receive inbound_email - end -end diff --git a/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb b/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb new file mode 100644 index 0000000000..55b87288a8 --- /dev/null +++ b/app/models/jobs/action_mailroom/deliver_inbound_email_to_mailroom_job.rb @@ -0,0 +1,10 @@ +class ActionMailroom::DeliverInboundEmailToMailroomJob < ApplicationJob + queue_as :action_mailroom_inbound_email + + # Occasional `SSL_read: decryption failed or bad record mac` that resolve on retry + retry_on OpenSSL::SSL::SSLError + + def perform(inbound_email) + ActionMailroom::Router.receive inbound_email + end +end -- cgit v1.2.3