Sha256: 138c77849e905b480411b39d0e6c43382102290e51a78038018b895193cb597c

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 Bytes

Contents

# 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
  queue_as { ActionMailbox.queues[:routing] }

  def perform(inbound_email)
    inbound_email.route
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
actionmailbox-0.1.0 app/jobs/action_mailbox/routing_job.rb