Selwin Ong
bb4336f612
Merge pull request #578 from tbaugis/master
...
log job result in DEBUG level and truncate to 2k symbols
9 years ago
Toms Bauģis
5a4f297134
do not truncate result output as that can be done in the log formatter
9 years ago
Michael Keirnan
da7d59e1a9
Merge remote-tracking branch 'upstream/master'
...
* upstream/master:
Modified patch_connection to allow Redis connection to be easily mocked.
9 years ago
Michael Keirnan
bad054989d
export worker id and job id to env of work horse
...
For tracing job execution in a distributed system it is useful to tag log
entries with the worker id and job id. The current job is accessible
via get_current_job(), but that requires an extra redis connection. And
the current worker id (the worker id of the parent process) does not appear
to be available.
Rather than introducing an `rqworker` alternative or subclassing Worker, it
feels simple and efficient to make these contextual ids available as
environment variables. This should have no performance cost and no
API compatibility issues.
Some useful things to do with these values in the worker horse process:
+ include them in log messages
+ include them as 'x-' headers in HTTP requests made by workers
9 years ago
Selwin Ong
e538512c79
Merge branch 'master' of github.com:nvie/rq
...
Conflicts:
tests/test_job.py
9 years ago
Selwin Ong
0e4112da7a
Modified patch_connection to allow Redis connection to be easily mocked.
9 years ago
Toms Bauģis
ade154575e
fix travis error - python 2.6 or whatevs wants positions spelled out for .format
9 years ago
Selwin Ong
1a089887c0
Merge pull request #564 from jlopex/javi/fix_dependent_jobs_on_different_queues
...
support multiple queues on dependent jobs
9 years ago
Toms Bauģis
682d4adb40
log result in DEBUG level and truncate to 2k symbols
9 years ago
Javier Lopez
d3d9a20680
Do not call pipeline.execute() if pipeline is given as argument
9 years ago
Selwin Ong
cf20f1d9b2
Merge pull request #576 from jlopex/ensure_custom_handlers_are_called
...
Ensure custom exception handlers call when Redis is down
9 years ago
Vincent Driessen
02c6df6a45
This is 0.5.5
9 years ago
Vincent Driessen
c1a4780d10
Fix PEP8 complaints
9 years ago
Vincent Driessen
3f860f985d
Add .mailmap
9 years ago
Vincent Driessen
319f98a36e
Update changelog for 0.5.5
9 years ago
Javier Lopez
4fb59a4ceb
Ensure custom exception handlers calls when Redis is down
9 years ago
Javier Lopez
a2d0e4f933
Clarify test_enqueue_dependents_on_multiple_queues
9 years ago
Javier Lopez
8a6bc08e47
Added pipeline named argument to enqueue_job
9 years ago
Javier Lopez
c76c59133b
Fix ValueError exception on relative import
...
test_job raised an exception:
ValueError: Attempted relative import in non-package
9 years ago
Javier Lopez
c136209804
Add test_enqueue_dependents_on_mulitple_queues test
9 years ago
Javier Lopez
b4f157516e
enqueue_dependents now uses origin queue to enqueue
...
Current implementation is using the first job queue
to insert the dependent jobs. This makes RQ to ignore
the original queue where the jobs were enqueued.
With this change, we will use job origin attribute to
fetch the original queue, then insert the dependent
job to the fetched queue.
fixes issue #512
9 years ago
Selwin Ong
e6a15c57b3
Disable click >= 5.0's unicode_literals warnings.
9 years ago
Selwin Ong
f09be523dd
Merge pull request #573 from jcsaaddupuy/feature/dequeue_any_not_recursive
...
dequeue_any not recursive
9 years ago
Selwin Ong
a420a9999d
Merge pull request #572 from Damnever/master
...
_Colorizer().notty is more clear.
10 years ago
Jean-Christophe SAAD-DUPUY
8fbf5452fa
fix: return (None, None) for dequeue_any if no result
10 years ago
Jean-Christophe SAAD-DUPUY
59d193590c
fix: remove recursive call to dequeue_any
10 years ago
Damnever
43616ea696
_Colorizer().notty is more clear
10 years ago
Selwin Ong
7312683e4d
Merge pull request #571 from lots0logs/master
...
make args and kwargs explicit for enqueue_call function
10 years ago
Dustin Falgout
91a3aa7493
make args and kwargs explicit for enqueue_call function
...
closes #466
10 years ago
Selwin Ong
193dc8609e
Merge pull request #565 from likeon/jobs-equality-fix
...
Fixes Job.__eq__ crash when other object doesn't have id attribute
10 years ago
likeon
fc4124e39c
Fixes Job.__eq__ crash when other object doesn't have id attribute
10 years ago
Selwin Ong
e6a499ada8
Merge pull request #561 from selwin/async-bug
...
Sync jobs should be cleaned up after execution.
10 years ago
Selwin Ong
edd139d86f
Sync jobs should be cleaned up after execution.
10 years ago
Selwin Ong
cdcea84105
Merge pull request #557 from selwin/exception_handling
...
Exception handling
10 years ago
Vincent Driessen
e88525a649
This is 0.5.4
10 years ago
Vincent Driessen
807f649f6c
Add changelog for 0.5.4
10 years ago
Vincent Driessen
28a19ee717
Remove warning that's now breaking since the Raven API changed
10 years ago
Selwin Ong
3c3646cf91
Merge branch 'master' into exception_handling
...
Conflicts:
tests/fixtures.py
10 years ago
Selwin Ong
8bfbeac67d
Running rqworker without specifiying --exception-handler shouldn't override default behavior.
10 years ago
Selwin Ong
7bbe93a2be
Merge pull request #555 from foxx/patch-2
...
Fixed docs links
10 years ago
Cal Leeming
95c2bf8e11
Fixed docs links
...
* Added docs link at the top of the page, much easier to see.
* Changed docs link to github pages
10 years ago
Vincent Driessen
fcb1e1fdfa
Merge pull request #545 from tonyseek/replace-pypipins
...
Use shields.io instead of pypip.in.
10 years ago
Selwin Ong
05d97dd9b4
Merge pull request #552 from ejosan/dependency_setup
...
issue #551
10 years ago
Erik Vrolijk
10cca234cd
issue #551
10 years ago
Selwin Ong
5fb078116e
Merge pull request #544 from mozillazg/patch-1
...
Fixed a format error
10 years ago
Jiangge Zhang
2773464a2b
Use shields.io instead of pypip.in.
10 years ago
mozillazg
7198b4568a
Fixed a format error
10 years ago
Vincent Driessen
0de225ec62
Emphasize private nature of `stopped` property
10 years ago
Vincent Driessen
72fdbaf509
Update changelog
10 years ago
Vincent Driessen
3b67894489
Rename variable in test
10 years ago