1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailbox/app/jobs/action_mailbox/routing_job.rb

12 lines
398 B
Ruby
Raw Normal View History

# 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.
class ActionMailbox::RoutingJob < ActiveJob::Base
2018-11-11 18:23:13 -05:00
queue_as { ActionMailbox.queues[:routing] }
def perform(inbound_email)
inbound_email.route
end
end