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

@@ -14,8 +14,8 @@ trigger_scheduled_items_job:
class: 'TriggerScheduledItemsJob'
queue: scheduled_jobs
# executed At every minute.
# executed At every 5th minute..
trigger_imap_email_inboxes_job:
cron: '*/1 * * * *'
cron: '*/5 * * * *'
class: 'Inboxes::FetchImapEmailInboxesJob'
queue: scheduled_jobs

View File

@@ -6,6 +6,7 @@
:verbose: false
:concurrency: 5
:timeout: 25
:max_retries: 3
# Sidekiq will run this file through ERB when reading it so you can
# even put in dynamic logic, like a host-specific queue.
@@ -25,7 +26,7 @@
- [action_mailbox_routing, 3]
- [high, 5]
- [critical, 10]
# you can override concurrency based on environment
production:
:concurrency: 10