
Security News
pnpm 10.12 Introduces Global Virtual Store and Expanded Version Catalogs
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Normally resque processes queues in a fixed order. This can lead to jobs in queues at the end of the list not getting handled for very long periods. resque-fairly provides a mechanism where by workers are distributed across the set of queues with pending jobs fairly. This results in a much more predictable mean time to handling for jobs in queues that are not the first in the list.
resque-fairly works by sorting the queues randomly before assigning the next queue on the list to a worker. You can add weights to your various queues to alter their likelihood of being selected, by using /priorities/. The priorities select queues by regular expression.
Example:
Resque::Plugins::Fairly.prioritize(/^a/, 2)
The above will prioritize queues whose names start with 'a' to be selected twice as often as the default.
You can use any floating point number as the multiplier. If a queue is matched by more than one priority, the final weight will be the product of all the matching weights.
Also filters the queues based on one or more regular expressions to include and/or exclude the matching queues. Note: All these methods are also chainable.
Examples:
Resque::Plugins::Fairly.only(/foo/).except(/foobar/)
The above will return a randomized list of queues which contain the text 'foo', but not the text 'foobar'
Clears all priorities and only and except filters.
Copyright (c) 2009 OpenLogic, Inc. See LICENSE for details.
FAQs
Unknown package
We found that resque-fairly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.
Security News
Amaro 1.0 lays the groundwork for stable TypeScript support in Node.js, bringing official .ts loading closer to reality.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.