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
Vincent Driessen
db37d8b326
Test on Python 3.4 on Travis, too.
11 years ago
Vincent Driessen
3de8a47f06
Merge pull request #390 from selwin/pipeline-dependency-registration
...
job.register_dependency() should support pipelining
11 years ago
Selwin Ong
fc19a64670
job.register_dependency() should support pipelining.
11 years ago
Vincent Driessen
3ded050804
Replace by a string just as wide to not make this invalid binary pickle data.
11 years ago
Vincent Driessen
b91b89a183
Use highest pickle protocol version to serialize job data.
11 years ago
Vincent Driessen
79db282879
Support enqueueing callable classes.
...
Fixes #388 .
11 years ago
Vincent Driessen
865efd6e8c
Leave setting the state to the worker, not the Job itself.
...
Should fix #389 .
11 years ago
Vincent Driessen
712e663ffc
Allow passing in positional arguments via tox to pytest.
...
See docs for details: http://tox.readthedocs.org/en/latest/example/general.html
11 years ago