1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Update suspended_user_cleanup_scheduler.rb

This commit is contained in:
Shlee 2024-05-02 20:57:47 +09:30 committed by GitHub
parent 618ce0ddc5
commit 40f4d069bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,7 +19,7 @@ class Scheduler::SuspendedUserCleanupScheduler
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 1.day.to_i
def perform
return if Sidekiq::Queue.new('pull').size > MAX_PULL_SIZE
return if Sidekiq::Queue.new('low_delivery').size > MAX_PULL_SIZE
process_deletion_requests!
end