Fix: Add max retries for all jobs (#3582)

This commit is contained in:
Tejaswini Chile
2021-12-15 17:31:16 +05:30
committed by GitHub
parent 6ae06f2c7a
commit b7336eca65
5 changed files with 69 additions and 66 deletions

View File

@@ -2,6 +2,8 @@ class Inboxes::FetchImapEmailsJob < ApplicationJob
queue_as :low
def perform(channel)
return unless channel.imap_enabled?
Mail.defaults do
retriever_method :imap, address: channel.imap_address,
port: channel.imap_port,