debian-mirror-gitlab/config/initializers/mailer_retries.rb
2023-07-09 08:55:56 +05:30

7 lines
253 B
Ruby

# frozen_string_literal: true
Rails.application.config.after_initialize do
ActionMailer::MailDeliveryJob.sidekiq_options retry: 3
ActionMailer::MailDeliveryJob.include(WorkerAttributes)
ActionMailer::MailDeliveryJob.data_consistency :delayed
end