mirror of
https://github.com/mastodon/mastodon.git
synced 2024-05-18 01:52:43 +00:00
Merge 7caf605384
into b7902225d6
This commit is contained in:
commit
3eea6103da
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class ActivityPub::LowPriorityDeliveryWorker < ActivityPub::DeliveryWorker
|
||||
sidekiq_options queue: 'pull', retry: 8, dead: false
|
||||
sidekiq_options queue: 'low_delivery', retry: 8, dead: false
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -4,8 +4,9 @@
|
|||
- [default, 8]
|
||||
- [push, 6]
|
||||
- [ingress, 4]
|
||||
- [mailers, 2]
|
||||
- [pull]
|
||||
- [mailers, 3]
|
||||
- [pull, 2]
|
||||
- [low_delivery]
|
||||
- [scheduler]
|
||||
|
||||
:scheduler:
|
||||
|
|
Loading…
Reference in a new issue