2018-12-14 05:06:12 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-12-12 19:34:05 -05:00
|
|
|
# Routing a new InboundEmail is an asynchronous operation, which allows the ingress controllers to quickly
|
|
|
|
# accept new incoming emails without being burdened to hang while they're actually being processed.
|
2018-09-28 15:19:43 -04:00
|
|
|
class ActionMailbox::RoutingJob < ActiveJob::Base
|
2018-11-11 18:23:13 -05:00
|
|
|
queue_as { ActionMailbox.queues[:routing] }
|
2018-09-28 15:19:43 -04:00
|
|
|
|
|
|
|
def perform(inbound_email)
|
2018-10-01 15:42:32 -04:00
|
|
|
inbound_email.route
|
2018-09-28 15:19:43 -04:00
|
|
|
end
|
|
|
|
end
|