Sha256: 063b24df4d23e5ec1e6d08a4112e9720a777f8f84f173882a754c196909f001c

Contents?: true

Size: 424 Bytes

Versions: 153

Compression:

Stored size: 424 Bytes

Contents

# frozen_string_literal: true

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

    def perform(inbound_email)
      inbound_email.route
    end
  end
end

Version data entries

153 entries across 148 versions & 12 rubygems

Version Path
actionmailbox-7.2.0.beta1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.3.2 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.3.1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.0.8.1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.1.7.7 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.3 app/jobs/action_mailbox/routing_job.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionmailbox-6.1.6.1/app/jobs/action_mailbox/routing_job.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionmailbox-7.0.3.1/app/jobs/action_mailbox/routing_job.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionmailbox-7.0.2.3/app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.2 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.0 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.0.rc2 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.0.rc1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.1.0.beta1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.0.8 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.0.7.2 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.1.7.6 app/jobs/action_mailbox/routing_job.rb
actionmailbox-7.0.7.1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.1.7.5 app/jobs/action_mailbox/routing_job.rb