forked from OptimalBits/bull
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix OptimalBits#362 Fix OptimalBits#329 This commit adds support for rate limiting of a queue. The rate limit applies to each instance of the queue. If you have 3 threads processing the queue, and you want to limit your jobs to 1 per second, it will be 1 job per second amongst the 3 threads. queue#process first argument has been changed to an options object, and concurrency now resides within this object, as well as the new rate limiting options. (If a number is specified as the first argument to queue#process, it will be treated as the old version of the API which I have deprecated in favor of passing in the options object).
- Loading branch information
Michael Leaney
committed
Feb 15, 2017
1 parent
1d4d3e9
commit 36e9cb0
Showing
4 changed files
with
119 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters