75 Commits (bc8fe2988d2280380ab32ac734c84bdebdad2038)

Author SHA1 Message Date
zhangliyong 0c4e28bd62 Use 'with Connection' instead of 'use_connection' 11 years ago
zhangliyong 1e5a8b58a1 Use -y option to confirm emptying failed queue by default 11 years ago
zhangliyong c90da5336e Avoid using use_connection, initial queues directly using redis connection 11 years ago
zhangliyong adc24b6fe0 Fix import error 11 years ago
zhangliyong 551483b477 Add rq info command 11 years ago
zhangliyong 81febc6dc5 Format empty help message 11 years ago
zhangliyong f845ae25a2 Make command empty help message friendly 11 years ago
zhangliyong 36880db872 Show progressbar when requeuing 11 years ago
zhangliyong e1d236ec02 Use click.echo instead of print to output 11 years ago
zhangliyong 07aea5e5c1 Add CLI `rq` to empty queues and requeue failed jobs 11 years ago
Selwin Ong 2ab7276230 Merge pull request #377 from selwin/logging-fix
Only add logging handler if nothing is configured
11 years ago
Selwin Ong b828078dde Fixed default logging level in setup_loghandlers. 11 years ago
David Bonner e2f398be80 fix --worker-ttl command line arg
Make sure it's converted to an int, since the rest of the code expects it to be.  Without this patch, trying to use that argument gets you something like this:

(cogo)[dbonner@bonnervm18 syseng]$ rqworker --worker-ttl 86400
21:52:07 RQ worker started, version 0.4.6
Traceback (most recent call last):
  File "/opt/cogo/bin/rqworker", line 9, in <module>
    load_entry_point('rq==0.4.6', 'console_scripts', 'rqworker')()
  File "/home/dbonner/src/github/rq/rq/scripts/rqworker.py", line 102, in main
    w.work(burst=args.burst)
  File "/home/dbonner/src/github/rq/rq/worker.py", line 354, in work
    timeout = None if burst else max(1, self.default_worker_ttl - 60)
TypeError: unsupported operand type(s) for -: 'str' and 'int'
11 years ago
Selwin Ong 8095a565ac rqworker script should accept "--job-class" parameter. 11 years ago
Vincent Driessen ab9e6b852e Fix PEP8 complaints. 12 years ago
Vincent Driessen 38ec259b6e Enable the most modern Python syntax. 12 years ago
Vincent Driessen cb34acc279 Add rqinfo -X command.
This can be used to empty the failed queue right from the command line.
12 years ago
Tomas Hanacek 6494233058 rqworker default arguments of socket, worker_ttl, results_ttl bugfix 12 years ago
Vincent Driessen 3649ff863b Don't rely on external package `first`. 12 years ago
Vincent Driessen a55be12864 Merge branch 'malthe-default-to-environment-args' 12 years ago
Vincent Driessen 3667e37ed3 Don't expose the envvar values through `rqinfo -h`. 12 years ago
Christophe Olinger e16b89de3b Use get_state() instead of .state in rqinfo 12 years ago
Malthe Borch e77b3e8a21 Pull argument parser defaults from environment variables. 12 years ago
Vincent Driessen d2bbd31c59 Fix some flake8 complaints. 12 years ago
Vincent Driessen f7e2375b36 Remove two-char short args.
In UNIX, this would mean the shorthand notation for `-w -t`, which is
confusing and conflicts with the existing `-w` and `-t` flags.  Instead,
if you need this, you'll have to spell the flag name out because we've
run out of chars that make sense.
12 years ago
Rees Dooley fb65e321ed Changed timeout to results_ttl. Added similar worker_ttl param 12 years ago
Rees Dooley f8e775a784 Results timeout arg added to rqworker 12 years ago
Vincent Driessen 3546aae0c0 Let's keep things readable. 12 years ago
Selwin Ong 28dcb5dcd1 Renamed "--worker" flag to "--worker-class". 12 years ago
Selwin Ong 4ff038481f First stab at allowing user to specify a custom worker class. 12 years ago
Vincent Driessen d037696fc5 Merge branch 'asldevi-master' 12 years ago
Vincent Driessen eb5bb6329c PEP8ify. 12 years ago
Vincent Driessen 536e8a89cf Fixes for Python 3. 12 years ago
Alex Morega 5b630b1e22 port rqinfo to py3 12 years ago
Devi c4e7c17994 deprecate use of host/db/port options for Redis 12 years ago
Jacob Oscarson 5505291818 Polished help message for PID file specification 12 years ago
Jacob Oscarson 995554cdd2 Removed alternative parameters for PID file creation 12 years ago
Devi a0d46c93f3 take REDIS_URL from settings if exists 12 years ago
Jacob Oscarson 72d219a24c Writes an optional specified PID file on startup 13 years ago
Vincent Driessen 0f804e07ae Merge pull request #198 from johannth/scripts-respect-url
Made rqworker and rqinfo respect db parameters from --url
13 years ago
Jóhann Þorvaldur Bergþórsson 7660fbdc18 Made rqworker and rqinfo respect db parameters from --url
When starting the rqworker and rqinfo scripts with an --url parameter containing a non default database, e.g. redis://localhost:6379/2, both scripts connected db 0 instead of the desired database. Fixed this behavior by ignoring the --host, --port and --db arguments if --url is there.

Also fixed another issue with the rqinfo script, in which it defaulted to only the 'default' queue instead of finding all available queues using Queue.all().
13 years ago
Vincent Driessen 067a1760ed Merge branch 'Plexical-config-socket' 13 years ago
Bruno Renié 7a8fe6be30 Ability to get SENTRY_DSN from the environment variables 13 years ago
Jacob Oscarson 11b2cf2bd5 Perform actual connection (+ increase test coverage) 13 years ago
Jacob Oscarson ef43790ba2 Better placing + testability of socket as a cli parameter 13 years ago
Jacob Oscarson 02288dd048 Optionally configure connection as path to Unix socket (tbd: actual connection) 13 years ago
Vincent Driessen a04169e561 Allow rqworker to run more silently. 13 years ago
Vincent Driessen 223e09f4fe Add rq.contrib.legacy.cleanup_ghosts() function, to clean up old mess. 13 years ago
Vincent Driessen 54254f2271 Patch the connection instances.
This patches the connection object (which is either a StrictRedis
instance or a Redis instance), to have alternative class methods that
behave exactly like their StrictRedis counterparts, no matter whether
which type the object is.  Only the ambiguous methods are patched.  The
exhaustive list:

- _zadd          (fixes argument order)
- _lrem          (fixes argument order)
- _setex         (fixes argument order)
- _pipeline      (always returns a StrictPipeline)
- _ttl           (fixes return value)
- _pttl          (fixes return value)

This makes it possible to call the methods reliably without polluting
the RQ code any further.
13 years ago
Vincent Driessen d1c2b3b78d Merge branch 'selwin-remove-logbook'
Conflicts:
	rq/utils.py
	rq/worker.py
	setup.cfg
	setup.py
13 years ago