Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move copay notifications back to concurrent approach (#12938)
Browse files Browse the repository at this point in the history
* Move back to concurrent approach...

* Decrease to 4 workers
Scott James authored Jun 9, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent cb9d9cd commit 284253d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ class NewStatementNotificationJob
def self.throttle
return Sidekiq::Limiter.unlimited if Rails.env.test?

Sidekiq::Limiter.bucket('new-copay-statements', 1000, :second, wait_timeout: 60)
Sidekiq::Limiter.concurrent('new-copay-statements', 4, wait_timeout: 259_200, lock_timeout: 120)
end

LIMITER = throttle

0 comments on commit 284253d

Please sign in to comment.