Commit Graph

484 Commits

Author SHA1 Message Date
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
Vincent Driessen 4b2838943b Rename rv_ttl to default_result_ttl. 2012-08-07 11:06:20 +02:00
Vincent Driessen 5fcedbcdad Change assertEqual to assertGreaterThan, to make the test a little less
brittle (on slow machines).
2012-08-07 11:05:50 +02:00
Vincent Driessen 78864e2581 PEP8ify. 2012-08-07 09:52:33 +02:00
Selwin Ong a5e6765990 Added "result_ttl" property on jobs that determines how long job results are persisted in Redis. 2012-08-07 14:34:51 +07:00
Vincent Driessen 5f4bb8dfc5 Fix word ordering. 2012-08-07 08:41:55 +02:00
Vincent Driessen 5cbc59205a Add changelog and bump version to 0.3.0. 2012-08-05 09:54:09 +02:00
Vincent Driessen 1177caf4bf Set state to busy as early as possible. 2012-08-05 09:42:27 +02:00
Vincent Driessen f2d5ebf2fe Merge branch 'master' into selwin-warm-shutdown-2
Conflicts:
	rq/worker.py
2012-08-05 09:36:23 +02:00
Vincent Driessen 1536546613 Worker/horse distinction in signal handler is obsolete. 2012-08-05 09:21:25 +02:00
Vincent Driessen a6bb526773 Fix that doens't abort the currently running job on Ctrl+C. 2012-08-05 09:13:49 +02:00
Vincent Driessen 6b075f6cb7 Add comment to the README. 2012-08-04 09:18:46 +02:00
Vincent Driessen f3890c85a0 Reformat Markdown for Python highlighting. 2012-08-03 15:04:18 +02:00
Vincent Driessen 4d2157cdb5 Add the same treatment to the README file. 2012-08-03 13:20:19 +02:00
Alexander Artemenko 530930bc7b Fixed code snippets' styling. 2012-08-02 16:52:12 +04:00
Vincent Driessen 9bfd686be3 Merge hotfix/0.2.2 2012-08-01 14:04:57 +02:00