aboutsummaryrefslogtreecommitdiffstats
path: root/app/jobs/action_mailbox
diff options
context:
space:
mode:
Diffstat (limited to 'app/jobs/action_mailbox')
-rw-r--r--app/jobs/action_mailbox/incineration_job.rb20
-rw-r--r--app/jobs/action_mailbox/routing_job.rb11
2 files changed, 0 insertions, 31 deletions
diff --git a/app/jobs/action_mailbox/incineration_job.rb b/app/jobs/action_mailbox/incineration_job.rb
deleted file mode 100644
index 27dd9b151f..0000000000
--- a/app/jobs/action_mailbox/incineration_job.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-# You can configure when this `IncinerationJob` will be run as a time-after-processing using the
-# `config.action_mailbox.incinerate_after` or `ActionMailbox.incinerate_after` setting.
-#
-# Since this incineration is set for the future, it'll automatically ignore any `InboundEmail`s
-# that have already been deleted and discard itself if so.
-class ActionMailbox::IncinerationJob < ActiveJob::Base
- queue_as { ActionMailbox.queues[:incineration] }
-
- discard_on ActiveRecord::RecordNotFound
-
- def self.schedule(inbound_email)
- set(wait: ActionMailbox.incinerate_after).perform_later(inbound_email)
- end
-
- def perform(inbound_email)
- inbound_email.incinerate
- end
-end
diff --git a/app/jobs/action_mailbox/routing_job.rb b/app/jobs/action_mailbox/routing_job.rb
deleted file mode 100644
index fc3388daff..0000000000
--- a/app/jobs/action_mailbox/routing_job.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-# frozen_string_literal: true
-
-# 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