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-6.0.2 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.2.rc2 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.2.rc1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.1 app/jobs/action_mailbox/routing_job.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actionmailbox-6.0.0/app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.1.rc1 app/jobs/action_mailbox/routing_job.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actionmailbox-6.0.0/app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.0 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.0.rc2 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.0.rc1 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.0.beta3 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.0.beta2 app/jobs/action_mailbox/routing_job.rb
actionmailbox-6.0.0.beta1 app/jobs/action_mailbox/routing_job.rb