docbrown/app/workers/notifications/remove_old_notifications_worker.rb
Molly Struve e07c707ede
[deploy] Refactor:Move remove_old_notifications Rake Task to Sidekiq (#9936)
* Refactor:Move remove_old_notifications Rake Task to Sidekiq

* fix typo
2020-08-24 08:48:46 -04:00

11 lines
224 B
Ruby

module Notifications
class RemoveOldNotificationsWorker
include Sidekiq::Worker
sidekiq_options queue: :low_priority, retry: 10
def perform
Notification.fast_destroy_old_notifications
end
end
end