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

@@ -0,0 +1,11 @@
# housekeeping
# remove contact inboxes that does not have any conversations
# and are older than 3 months
class Internal::RemoveStaleContactInboxesJob < ApplicationJob
queue_as :scheduled_jobs
def perform
Internal::RemoveStaleContactInboxesService.new.perform
end
end