Periodically remove expired PuSH subscribers (#4654)
parent
143b77e10d
commit
f391a4673a
@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'sidekiq-scheduler'
|
||||
|
||||
class Scheduler::SubscriptionsCleanupScheduler
|
||||
include Sidekiq::Worker
|
||||
|
||||
def perform
|
||||
Subscription.expired.in_batches.delete_all
|
||||
end
|
||||
end
|
Loading…
Reference in new issue