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-06-18 01:13:09 +09:30 committed by GitHub
parent d3a51cb24e
commit 3f2ffa63e5
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('low_delivery').size > MAX_QUEUE_SIZE
return if Sidekiq::Queue.new('low_priority').size > MAX_QUEUE_SIZE
process_deletion_requests!
end