Vincent Driessen
35dedf3db4
Make test descriptions show up in short (oneliner) mode, as ./run_tests does.
2012-07-24 11:15:23 +02:00
Vincent Driessen
ea19bdc910
Merge branch 'new-enqueue' into selwin-decorator
2012-07-24 11:13:44 +02:00
Vincent Driessen
abac4a5f41
Since we only have the timeout option, don't be too generic.
2012-07-24 11:13:06 +02:00
Selwin Ong
8c3292d35b
Make "queue" argument in job decorator required.
...
job decorator now uses Queue's "enqueue_call" method.
2012-07-24 16:03:49 +07:00
Vincent Driessen
d66939ff4a
Don't use the (internal) .enqueue_call() in unit tests.
2012-07-24 10:51:58 +02:00
Selwin Ong
ae97f862dc
Merge branch 'master' into decorator
2012-07-24 15:34:03 +07:00
Vincent Driessen
f6374f2dfa
Add new way of invoking .enqueue(), either implicitly or explicitly.
2012-07-24 08:33:28 +02:00
Vincent Driessen
37404b9e09
Update changelog.
2012-07-23 12:01:35 +02:00
Vincent Driessen
e6bb7de8c0
Get rid of the ambiguity when passing the timeout argument to .enqueue() calls.
2012-07-23 11:50:32 +02:00
Vincent Driessen
f6e67431d7
Refactor the .enqueue() API to not gobble the timeout kwargs.
...
This fixes #98 .
2012-07-23 11:39:22 +02:00
Vincent Driessen
8436d9b2c8
PEP8ify.
2012-07-23 11:28:56 +02:00
Selwin Ong
bdc1af28d1
Added a job decorator.
2012-07-23 13:25:31 +07:00
Vincent Driessen
b7d1fab2db
Prepare changelog for next version.
2012-07-20 14:50:23 +02:00
Vincent Driessen
a2b9c6ce86
Bump the version.
2012-07-20 14:49:18 +02:00
Vincent Driessen
1a178d673b
Fix bug where results wasn't correctly unpickled when refreshing from Redis.
2012-07-20 14:27:56 +02:00
Vincent Driessen
a9c6795b0e
Add new release section.
2012-07-18 14:43:28 +02:00
Vincent Driessen
987e8fe77f
Bump version.
2012-07-18 14:43:02 +02:00
Vincent Driessen
1ae51018d2
Update changelog for the upcoming release.
2012-07-18 14:42:26 +02:00
Vincent Driessen
0b66bbaab1
Merge branch 'sleekslush-master'
2012-07-18 14:24:50 +02:00
Vincent Driessen
a032896453
Add means of specifying the job function using strings.
2012-07-18 14:13:13 +02:00
Vincent Driessen
3a8f30a53e
Add test.
2012-07-18 14:13:13 +02:00
Vincent Driessen
84988bdf94
Fix typo.
...
This fixes #85 .
2012-07-18 14:10:57 +02:00
Vincent Driessen
074af72536
Minor fix for empty dict check.
2012-07-18 12:55:34 +02:00
Selwin Ong
809874ee83
Don't store Job's "_instance" attribute in Redis.
2012-07-18 17:36:41 +07:00
Vincent Driessen
bd4793f116
Add way of running tests unfiltered.
2012-07-18 09:45:18 +02:00
Vincent Driessen
1d95a35cc6
More portable way of checking whether a command exists.
2012-07-18 09:36:33 +02:00
Vincent Driessen
b0a42f4e25
Add Travis CI configuration file.
2012-07-18 09:32:36 +02:00
Vincent Driessen
604fce99a1
Merge with master.
2012-07-17 22:37:03 +02:00
Selwin Ong
1fb0a1bfac
Modified ``Job`` ``save`` and ``refresh`` methods to support persisting
...
additional ``Job`` attributes into Redis.
2012-07-17 20:23:01 +07:00
Vincent Driessen
cfbbc3d0ea
Merge remote-tracking branch 'omarkhan/instance_methods'
2012-07-17 14:09:45 +02:00
Omar Khan
03bd49511d
Allow instance methods to be enqueued
...
Only works for picklable instances
2012-07-17 11:48:41 +01:00
Goran Peretin
34d161eb11
requeueing preserves job timeout
2012-07-17 08:41:24 +02:00
Goran Peretin
317a58a3b5
quarantine preserves job timeout
2012-07-17 08:39:20 +02:00
Vincent Driessen
8bf0b8eb93
Merge pull request #84 from jonasvp/master
...
Use a non-zero exit code on errors in scripts
2012-07-09 06:27:20 -07:00
Jonas
c99cab71cd
Use a non-zero exitcode on errors in scripts
...
When a worker can't connect to Redis, return
a non-zero exit code so supervisor processes
can act accordingly.
2012-06-19 10:12:33 +02:00
Vincent Driessen
5c11ea6296
Merge pull request #83 from jonasvp/master
...
safe_fetch() didn't pass connection to Job.fetch()
Thanks @jonasvp!
2012-06-08 06:24:36 -07:00
Jonas
415a159ac3
Pass connection explicitly to Job.fetch
2012-06-08 15:20:23 +02:00
Vincent Driessen
074d42fe54
Remove strict procname dependency.
...
This fixes #80 .
2012-06-03 22:08:50 +02:00
Craig Slusher
2729b5435f
Uses push_connection() and pop_connection()
2012-05-30 15:40:00 -04:00
Vincent Driessen
b8430ffc0f
Don't use 'from rq import *'.
2012-05-21 08:13:58 +02:00
Vincent Driessen
48cee215af
Rewrite of the connection setup.
...
I'd want to advice against using `use_connection()` more, as the
connection setup is less explicit, and also pollutes global memory.
Because, well:
$ python -m this | head -n4 | tail -n1
;)
2012-05-21 08:08:59 +02:00
Jeffrey Gelens
31259fa106
Fixed examples. use_connection is now being used.
2012-05-20 23:49:08 +02:00
Vincent Driessen
697a4a89f8
Actually use any given default_timeout for queues.
2012-05-20 16:45:54 +02:00
Vincent Driessen
a5d9ed0a0d
Add change notes.
2012-05-20 16:09:57 +02:00
Vincent Driessen
12c5189706
Merge pull request #71 from selwin/worker-connection
...
Make "connection" argument passing-around consistent to work with Workers, too.
2012-05-20 07:06:19 -07:00
Vincent Driessen
f5951900c8
Make unit tests compatible with Python < 2.7.
2012-05-18 08:35:23 +02:00
Vincent Driessen
b45770cd3c
Fix unit test expressions.
2012-05-18 08:35:02 +02:00
Selwin Ong
50ba003cee
Worker's "all" and "find_by_key" methods should accept "connection" as argument.
2012-05-16 11:03:34 +07:00
Vincent Driessen
c423cab770
Bump version number.
2012-05-15 08:38:10 +02:00
Vincent Driessen
8aaa975fa9
Find all packages.
...
This fixes #67 .
2012-05-15 08:37:11 +02:00