Skip to content

Commit

Permalink
feat: renombrar trabajo de limpieza de claves de Redis a limpieza de …
Browse files Browse the repository at this point in the history
…bandejas de entrada de contactos
  • Loading branch information
nestordavalos committed Jan 2, 2025
1 parent 0570be5 commit ae80c34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/jobs/internal/remove_stale_contact_inboxes_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# remove contact inboxes that does not have any conversations
# and are older than 3 months

class Internal::ProcessStaleRedisKeysJob < ApplicationJob
class Internal::RemoveStaleContactInboxesJob < ApplicationJob
queue_as :low

def perform(account)
removed_count = Internal::RemoveStaleRedisKeysService.new(account_id: account.id).perform
Rails.logger.info "Successfully cleaned up Redis keys for account #{account.id} (removed #{removed_count} keys)"
removed_count = Internal::RemoveStaleContactInboxesService.new(account_id: account.id).perform
Rails.logger.info "Successfully cleaned up contact inboxes for account #{account.id} (removed #{removed_count} inboxes)"
end
end

0 comments on commit ae80c34

Please sign in to comment.