Selwin Ong
a28575088b
Implemented WorkingQueue.cleanup().
10 years ago
Selwin Ong
3dc008d090
Added WorkingQueue class.
10 years ago
Vincent Driessen
85badaf4a0
Indicate required Redis version in README.
10 years ago
Vincent Driessen
9ab46804c6
Merge pull request #417 from foxx/feature/testworker
...
Added test worker for unit tests - fixes #413
10 years ago
foxx
52c3ad0fbf
Renamed to SimpleWorker
10 years ago
foxx
23cae3a420
Fixed bug caused by broken merge, my bad
10 years ago
foxx
16ee71f26d
Use class for test worker, and performs PID check in unit tests, #412
10 years ago
Vincent Driessen
dab8373311
Fix all tests.
10 years ago
Vincent Driessen
c860beb4d5
Fix broken imports.
10 years ago
Vincent Driessen
b5fbc3992b
Restructure new CLI modules.
...
A few things have changed. First of all, there is no separate copy of
the argparse-based `rqinfo` anymore. It now fully utilizes the new
Click subcommand. In other words: `rqinfo` and `rq info` both invoke
the same function under the hood.
In order to support this, the main command group now does NOT take
a `url` option and initializes the connection. Besides supporting this
alias pattern, this change was useful for two more reasons: (1) it
allows us to add subcommands that don't need the Redis server running in
the future, and (2) it makes the `--url` option an option underneath
each subcommand. This avoids command invocations that look like this:
$ rq --url <url> info --more --flags
And instead allows us to pass the URL to each subcommand where it's
deemed necessary:
$ rq info --url <url> --more --flags
Which is much friendlier to use/remember.
10 years ago
Vincent Driessen
652cd71d2b
Merge branch 'zhangliyong-cli-rq'
10 years ago
Vincent Driessen
5c96c61255
Change `rq requeue` subtly, mostly docs and vars.
10 years ago
Vincent Driessen
07dda74710
Change options of the `rq empty` command.
...
* Does not ask confirmation
* Does not need `--yes` option anymore
* Added --all, to clear all queues
* No implicit emptying of the failed queue. If you want to empty the
failed queue, just use `$ rq empty failed`
10 years ago
Vincent Driessen
8f1e066f15
Various little style fixes.
10 years ago
Vincent Driessen
fc803f5d0d
Fix various flake8 complaints.
10 years ago
Selwin Ong
21620e98ca
Merge pull request #411 from selwin/fix-exception-handler
...
Don't pass "args" into logging call
10 years ago
zhangliyong
3eabe76690
Move back rqinfo command for backward compatibility
10 years ago
zhangliyong
4248c934ab
Remove unused function 'gettersize'
10 years ago
zhangliyong
c796e3249d
Fix click dependency version
10 years ago
Selwin Ong
7cf8ef42d1
Don't pass "args" into logging call.
10 years ago
zhangliyong
ae1681e7a0
Change doc of rq cli
10 years ago
zhangliyong
5883bb9efe
Make pep8
10 years ago
zhangliyong
de471b70b6
Merge branch 'master' of github.com:nvie/rq into cli-rq
10 years ago
zhangliyong
0ddd174868
Fix invoking requeue command bug in test_requeue
10 years ago
zhangliyong
8782b11f1e
Adjust test_requeue
10 years ago
zhangliyong
f734708ad4
Make pythonic
10 years ago
zhangliyong
5670f251d8
Add '--all' option and [JOB_IDS] argument to specify what to requeue
10 years ago
Selwin Ong
2e6f86d549
Merge pull request #407 from rascalking/master
...
allow queue class to be overriden from command line
10 years ago
Dave Bonner
6eea986012
allow queue class to be overriden from command line
...
use the same mechanism as the override for worker class.
10 years ago
zhangliyong
37748e5ace
Make pep8
10 years ago
zhangliyong
1c97a55064
compat str.format syntax with py26
10 years ago
zhangliyong
bc8fe2988d
Merge branch 'master' of github.com:nvie/rq into cli-rq
10 years ago
zhangliyong
1ab92602e8
Add testcase for rq_cli
10 years ago
zhangliyong
0c4e28bd62
Use 'with Connection' instead of 'use_connection'
10 years ago
zhangliyong
1e5a8b58a1
Use -y option to confirm emptying failed queue by default
10 years ago
zhangliyong
c90da5336e
Avoid using use_connection, initial queues directly using redis connection
10 years ago
zhangliyong
adc24b6fe0
Fix import error
10 years ago
zhangliyong
551483b477
Add rq info command
10 years ago
zhangliyong
e948bde5d7
Add rq command when installing
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
Vincent Driessen
5331dc4de6
Ignore local.py (it's tested in werkzeug instead).
11 years ago
zhangliyong
e1d236ec02
Use click.echo instead of print to output
11 years ago
zhangliyong
7f3cb8e785
Merge branch 'master' into cli-rq
11 years ago
zhangliyong
07aea5e5c1
Add CLI `rq` to empty queues and requeue failed jobs
11 years ago
Selwin Ong
2409e817ad
Merge pull request #395 from methane/patch-1
...
Easy refactoring on decorators.py
11 years ago
INADA Naoki
4fb2914c6f
Easy refactoring on decorators.py
11 years ago
Vincent Driessen
7ea076e8c8
Merge pull request #394 from selwin/log-extra_data
...
Capture more data when logging errors
11 years ago
Selwin Ong
b05c2052e1
Capture more data when logging errors.
11 years ago