Sha256: 728bbe70b8d9056dc30f592140755cb682e0e6e16f72af79c64d43e41fa27c5f
Contents?: true
Size: 1.68 KB
Versions: 4
Compression:
Stored size: 1.68 KB
Contents
A resque plugin for specifying the queues a worker pulls from with wildcards, negations, or dynamic look up from redis. Authored against Resque 1.15, so it at least works with that - try running the tests if you use a different version of resque Usage: Start your workers with a QUEUE that can contain '\*' for zero-or more of any character, '!' to exclude the following pattern, or @key to look up the patterns from redis. Some examples help: QUEUE='foo' rake resque:work Pulls jobs from the queue 'foo' QUEUE='\*' rake resque:work Pulls jobs from any queue QUEUE='\*foo' rake resque:work Pulls jobs from queues that end in foo QUEUE='\*foo\*' rake resque:work Pulls jobs from queues whose names contain foo QUEUE='\*foo\*,!foobar' rake resque:work Pulls jobs from queues whose names contain foo except the foobar queue QUEUE='\*foo\*,!\*bar' rake resque:work Pulls jobs from queues whose names contain foo except queues whose names end in bar QUEUE='@key' rake resque:work Pulls jobs from queue names stored in redis (use Resque.set\_dynamic\_queue("key", ["queuename1", "queuename2"]) to set them) QUEUE='@' rake resque:work Pulls jobs from queue names stored in redis using the hostname of the worker Resque.set\_dynamic\_queue("key", ["\*foo\*", "!\*bar"]) QUEUE='@key' rake resque:work Pulls jobs from queue names stored in redis, with wildcards/negations There is also a tab in the resque-web UI that allows you to define the dynamic queues To activate it, you need to require 'resque-dynamic-queues-server' in whatever initializer you use to bring up resque-web. Contributors: Matt Conway ( https://github.com/wr0ngway ) Bert Goethals ( https://github.com/Bertg )
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
resque-dynamic-queues-0.7.1 | README.md |
resque-dynamic-queues-0.7.0 | README.md |
resque-dynamic-queues-0.6.1 | README.md |
resque-dynamic-queues-0.6.0 | README.md |