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
Vincent Driessen
69adec5bc7
Merge pull request #357 from selwin/job-class
...
Make it easier to use custom job class
11 years ago
Selwin Ong
8095a565ac
rqworker script should accept "--job-class" parameter.
11 years ago
Selwin Ong
7ac1c3500a
Worker.__init__ should accept custom job class.
11 years ago
Selwin Ong
141278bb42
Queue.__init__ supports job_class argument.
11 years ago
Andrew Gorcester
17a4ed056d
use warnings.warn() instead of raise for DeprecationWarning
11 years ago
Vincent Driessen
052d0df4bf
Update CHANGES.
11 years ago
Vincent Driessen
eb469f8da0
Fix broken stub in tests.
11 years ago
Vincent Driessen
6644872273
Raise warning when using async Sentry transport.
11 years ago
Vincent Driessen
2314b62d8c
Start release 0.4.6.
11 years ago
Vincent Driessen
f0e02996bc
Use single quotes for string literals.
11 years ago
Zekui Shi
51fee72f66
fix print in example
11 years ago
Vincent Driessen
0fbc9e4851
Release 0.4.5.
11 years ago
Vincent Driessen
f3058faa36
Merge pull request #347 from friedcell/master
...
kwargs must be strings, unicode fails with "keywords must be strings"
11 years ago
Marko Mrdjenovic
78b8d2a6ef
kwargs must be strings, unicode fails with "keywords must be strings"
11 years ago
Vincent Driessen
972b367af4
Release 0.4.4.
11 years ago
Vincent Driessen
83382f51d0
PEP8ify.
11 years ago
Vincent Driessen
c263f8f600
Fix regression introduced in 0.4.3.
11 years ago
Vincent Driessen
a6d9837d87
Merge tag '0.4.3'
11 years ago
Vincent Driessen
6ee28fae9c
Redis 2.7.0 is required for lua scripting support
11 years ago
Vincent Driessen
c0567be69a
Release 0.4.3.
11 years ago
Vincent Driessen
da70ba580b
Fix broken import.
11 years ago
Vincent Driessen
fba11aac91
Merge branch 'SanyerMyasoedov-master'
11 years ago
Vincent Driessen
c5939479b5
Merge remote-tracking branch 'origin/master' into SanyerMyasoedov-master
...
Conflicts:
rq/decorators.py
tests/__init__.py
tests/test_decorator.py
11 years ago
Vincent Driessen
1f423436a5
Move mock to test-only dependencies.
11 years ago
Vincent Driessen
b048e23875
Merge pull request #342 from friedcell/master
...
make job class dynamic
11 years ago
Vincent Driessen
ab9e6b852e
Fix PEP8 complaints.
11 years ago
Vincent Driessen
38ec259b6e
Enable the most modern Python syntax.
11 years ago
Vincent Driessen
4746602c57
Explicit string check in Job constructor.
11 years ago
Vincent Driessen
9def988a85
Flip conditional sides of helper definitions (no semantic change).
11 years ago
Marko Mrdjenovic
5cba260cca
Job and Queue classes as variables (compatible with existing naming)
11 years ago
msoedov
e76020d894
Removed @resolve_connection from job decorator.
...
-- resolve_connection already presence inside Queue __init__.
11 years ago
msoedov
dd994142b3
Added tests and updated requirements with mock lib.
11 years ago
msoedov
b4bccb2d31
Moved @resolve_connection call into @delay wrapper
11 years ago
Marko Mrdjenovic
67dd1cbf34
make job class dynamic for more hackability
11 years ago
Vincent Driessen
cb278a9549
Add Python 3.4 to targets.
11 years ago
Vincent Driessen
ef9456ddbd
Bump version to 0.4.2.
11 years ago
Vincent Driessen
5fe82bd543
Merge pull request #341 from SanyerMyasoedov/master
...
Added depends_on to job decorator
11 years ago
msoedov
46c96f9481
Added depends_on to job decorator
11 years ago
Vincent Driessen
415662d42c
Bump version.
11 years ago
Vincent Driessen
e60584ef76
Use single quotes for string literals.
11 years ago
Vincent Driessen
dfd23d6fb8
Fix bug where RQ 0.4 could not unpickle jobs from RQ 0.3.x.
11 years ago
Vincent Driessen
39258e2c15
Release 0.4.0.
11 years ago
Vincent Driessen
aef7af9c77
Merge pull request #334 from nvie/emptying-failed-queue
...
Emptying failed queue
11 years ago
Vincent Driessen
7ea106e50e
Merge pull request #333 from selwin/explicit-args
...
Rearranged how explicit kwargs are passed into queue.enqueue(). Fixes #322
11 years ago
Vincent Driessen
cb34acc279
Add rqinfo -X command.
...
This can be used to empty the failed queue right from the command line.
11 years ago
Vincent Driessen
4d9c20d5d9
Reimplement Queue.empty() in a Lua script.
...
This makes the .empty() function perform all the computing in Redis
itself, rather than in Python. This is both atomic, and faster.
11 years ago
Vincent Driessen
057c4657ef
Fix whitespace.
11 years ago
Vincent Driessen
fdf4abcf69
Fix pipeline call.
11 years ago
Selwin Ong
4f918041e3
Rearranged how explicit kwargs are passed into queue.enqueue(). Fixes #322
11 years ago