resque-lonely_job

resque-lonely_job

Ensures that for a given queue, only one worker is working on a job at any given time. Example: require 'resque/plugins/lonely_job' class StrictlySerialJob extend Resque::Plugins::LonelyJob @queue = :serial_work def self.perform # only one at a time in this block, no parallelism allowed for this # particular queue end end

Rubygem resque-lonely_job

Total Downloads
7914
Releases
7
Current Version
1.0.2
Released
2014-02-10 00:00:00 UTC
First Release
2012-05-21 00:00:00 UTC
Depends on following gems
Depending Gems
0

Github wallace/resque-lonely_job

Watchers
12
Forks
10
Development activity
Less active
Last commit
2014-01-05 15:05:16 UTC
First commit
Top contributors
Contributors
2
Issues

Resources

There are no resources yet, be the first to submit one!

Comments

There are no comments yet, be the first to write one!

Post a comment

Markdown supported
or
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.