feat: Add job to remove stale contact inboxes (#8096)

This commit is contained in:
Vishnu Narayanan
2023-11-07 09:54:30 +05:30
committed by GitHub
parent abbb4180ea
commit 677888bcde
6 changed files with 106 additions and 0 deletions

View File

@@ -19,3 +19,10 @@ trigger_imap_email_inboxes_job:
cron: '*/1 * * * *'
class: 'Inboxes::FetchImapEmailInboxesJob'
queue: scheduled_jobs
# executed daily at 2230 UTC
# which is our lowest traffic time
remove_stale_contact_inboxes_job.rb:
cron: '30 22 * * *'
class: 'Internal::RemoveStaleContactInboxesJob'
queue: scheduled_jobs