Vincent Driessen
2f578a4c2d
Avoid dict comprehension for compatibility.
...
This fixes #128 .
2012-09-03 08:08:34 +02:00
Vincent Driessen
59d150f1f8
Merge branch 'obmarg-fix-rqinfo'
...
This fixes #127 . Thanks!
2012-09-03 07:58:22 +02:00
Graeme Coupar
365d1d8226
Fixed argument handling in rqinfo
...
rqinfo was using None for the redis host and port, which was causing
exceptions when trying to connect. It was possible to supply these on
the commandline, but port was just being passed straight through as a
string, which also caused exceptions.
This commit moves some of the argument & configuration file handling out
of rqworker and into the scripts/__init__.py file, and then calls it
from rqinfo.
2012-09-03 00:48:52 +01:00
Vincent Driessen
7ece6c7e37
Prepare changelog for next version.
2012-09-02 11:30:45 +02:00
Vincent Driessen
db82d5c1b4
Release 0.3.1
2012-08-30 21:37:29 +02:00
Vincent Driessen
1ab8c19696
Revert "Remove logbook and replace it with logging".
...
This reverts the commit range f367c38..978ba2d.
Issue #121 is currently blocking the 0.3.1 release.
2012-08-30 21:35:44 +02:00
Vincent Driessen
a6e57dd7c0
Fix: change import path before importing settings module.
2012-08-29 15:03:14 +02:00
Vincent Driessen
a5134c48c8
Add changes.
2012-08-29 14:57:40 +02:00
Vincent Driessen
ce1da3f5ca
Add support for configuration RQ workers with Sentry with a single flag.
...
This fixes #122 .
2012-08-29 14:52:03 +02:00
Vincent Driessen
f7ab216781
Update changelog.
2012-08-29 14:51:26 +02:00
Vincent Driessen
1687633c07
Add support for passing configuration files to rqworker.
...
This fixes #123 .
2012-08-29 14:50:25 +02:00
Vincent Driessen
e5eaedeef2
Merge branch 'custom-exc-handling'
...
This fixes #95 .
2012-08-29 13:25:19 +02:00
Vincent Driessen
781f3e0460
Add test for custom exc handling.
2012-08-29 13:21:48 +02:00
Vincent Driessen
cd05f6550a
Link to docs from within changelog.
2012-08-29 13:11:01 +02:00
Vincent Driessen
9e22847d13
Update changelog.
2012-08-29 13:09:04 +02:00
Vincent Driessen
481369a88d
Require at least redis-py version 2.4.
...
This fixes #106 .
2012-08-29 13:06:15 +02:00
Vincent Driessen
db80be4ef7
Fix typos.
2012-08-29 12:19:49 +02:00
Vincent Driessen
db4ec16be8
Also report job description.
2012-08-29 12:18:26 +02:00
Vincent Driessen
502bf59399
Add convenience directive to easily configure Sentry with RQ.
2012-08-29 12:08:54 +02:00
Vincent Driessen
cdc3a6c7a9
Convenience exc_handler registration in __init__.
...
Allow custom exception handlers to be passed in in the Worker
constructor.
2012-08-29 12:07:18 +02:00
Vincent Driessen
f457bd9da2
Remove incorrect arg to pop_exc_handler method.
2012-08-29 10:26:37 +02:00
Vincent Driessen
daa8f38b4b
Improve formatting of the exceptions on the console.
2012-08-29 10:19:04 +02:00
Vincent Driessen
a20deb2c52
Add custom exception handling capabilities.
...
This fixes #95 .
2012-08-29 10:06:46 +02:00
Vincent Driessen
a017756748
Fetch fresh status value on every request.
...
It could probably require a bit of caching, to prevent too many fetches
per time slot (for example, return the locally cached value if that
value is as fresh as a second or so).
This fixes #120 .
2012-08-27 14:37:34 +02:00
Vincent Driessen
c0ab4f7966
Update changelog.
2012-08-27 14:37:33 +02:00
Vincent Driessen
35761a0d71
Merge branch 'selwin-persist-None-result'
2012-08-27 12:10:52 +02:00
Vincent Driessen
6b0ebe9ceb
Remove is_done property.
...
It is too similar to is_finished.
2012-08-27 12:10:20 +02:00
Vincent Driessen
bc7e32bae8
Add expiry info to the worker log.
2012-08-27 09:59:18 +02:00
Vincent Driessen
4b797fbf43
Don't use strings, but comments.
2012-08-27 09:58:59 +02:00
Vincent Driessen
9549b34d60
Add convenience accessor properties for status.
2012-08-27 09:47:09 +02:00
Vincent Driessen
4224304291
I like this implementation of an 'enum' better.
2012-08-27 09:40:59 +02:00
Vincent Driessen
c65a414e4a
Merge pull request #119 from selwin/worker-connection
...
Worker.find_by_key now properly uses connection. Thanks.
2012-08-26 23:43:23 -07:00
Selwin Ong
41946d1bb3
Worker.find_by_key now properly uses connection.
2012-08-27 13:14:53 +07:00
Selwin Ong
442b389b97
Job returning None as result are now persisted correctly.
...
Job status can now be checked via ``status`` property which should
return either "queued", "finished" or "failed".
2012-08-25 17:58:15 +07:00
Vincent Driessen
d7f83cd727
Update changelog.
2012-08-23 09:54:27 +02:00
Vincent Driessen
f06ef9c975
Merge branch 'selwin-async-2'
...
This fixes #114 .
2012-08-23 09:51:18 +02:00
Vincent Driessen
e2a0d83eee
Whoops.
2012-08-23 09:30:35 +02:00
Vincent Driessen
83369f3b9b
Prefer `result` over `return_value`.
...
`return_value` still is available as a backward-compatible accessor.
This fixes #116 .
2012-08-23 09:27:27 +02:00
Selwin Ong
06d75630e0
Execute job immediately if Queue(async=False)
2012-08-22 17:21:22 +07:00
Vincent Driessen
978ba2dff9
Add changelog note.
2012-08-21 23:02:59 +02:00
Donald Stufft
58ccd337c0
Don't hardcode a name into logging.getLogger
2012-08-21 11:49:48 -04:00
Donald Stufft
66235f7ad0
Switch to using slightly more pythonic log code
2012-08-21 11:48:17 -04:00
Donald Stufft
aeb17d0497
Make the rqworker script use the logging module instead of logbook
2012-08-21 11:47:36 -04:00
Donald Stufft
a08c983efc
Fix tests to use logging
2012-08-21 11:46:35 -04:00
Donald Stufft
82c4ac6ec2
Add a Handler that enables colorized output
2012-08-21 11:46:18 -04:00
Donald Stufft
f188d66354
Remove logbook from the install_requires and other dependency areas
2012-08-21 11:45:55 -04:00
Vincent Driessen
f367c38132
Bump version number and add changelog.
2012-08-07 11:09:08 +02:00
Vincent Driessen
720011c33e
Merge branch 'selwin-result_ttl'
2012-08-07 11:07:12 +02:00
Vincent Driessen
a9cb201d39
PEP8ify.
2012-08-07 11:07:03 +02:00
Vincent Driessen
5963ec6d77
Try to make the expiration code a bit more readable.
2012-08-07 11:06:57 +02:00