Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/jobs/application_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ApplicationJob < ActiveJob::Base

queue_as :default

discard_on ActiveJob::DeserializationError do |job, error|
retry_on ActiveJob::DeserializationError, attempts: 3 do |job, error|
ErrorReporting.warn(
"Skipping job because of ActiveJob::DeserializationError (#{error.message})",
arguments: job.arguments
Expand Down
2 changes: 2 additions & 0 deletions app/jobs/send_notification_job.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true
class SendNotificationJob < ApplicationJob
retry_on Aws::SES::Errors::Throttling, wait: :polynomially_longer, attempts: 10

def perform(event_key:, options:)
notifier_class = Notifier.notifier_class_for_event_key(event_key)
notifier = notifier_class.new(**options)
Expand Down
Loading