157 Commits (b048e23875da9b1aa63ae64d5036d7d0042f89d1)

Author SHA1 Message Date
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
Marko Mrdjenovic 5cba260cca Job and Queue classes as variables (compatible with existing naming) 11 years ago
Tomas Hanacek 6494233058 rqworker default arguments of socket, worker_ttl, results_ttl bugfix 11 years ago
Selwin Ong 7eb6c2ab9f Job timeouts are now handled by "worker.death_penalty_class". 11 years ago
Selwin Ong 835c353380 Job status should be updated during job.perform(). 11 years ago
Selwin Ong 57990fa052 Simplify worker.work() by moving some functionalities to relevant methods. 11 years ago
Selwin Ong f5c3c9a6dd Deprecate job.status. 11 years ago
Selwin Ong 72457d2286 Added DeprecationWarning to worker.state. 11 years ago
Selwin Ong 2fe5d9e25e Python 3 compatibility with worker.get_current_job(). 11 years ago
Selwin Ong 802ecb5ccb Renamed worker.set_job_id() and worker.get_job_id() for consistency. 11 years ago
Selwin Ong 93bb9ec5f4 Added tests for worker.get_current_job(). 11 years ago
Selwin Ong 1b3832adb5 Merge branch 'master' of https://github.com/mbr/rq into worker-get_job_id
Conflicts:
	rq/worker.py
11 years ago
Selwin Ong 37376cfe42 Deprecate worker.state. 11 years ago
Selwin Ong 2044e790f5 Renamed Worker.fork_and_perform_job to Worker.execute_job. 11 years ago
Marc Brinkmann e81ee5b672 Update worker.py
Use docstring instead of comment. Sorry.
11 years ago
Vincent Driessen d0381e98ee Fix .pipeline -> ._pipeline.
This makes sure it's compatible with both Redis and StrictRedis back
ends.
11 years ago
Dj Gilcrease fd036538f7 Wrap the perform_job try/except in a pipeline context so the pipeline connection is properly refrshed after the work is done 11 years ago
Malthe Borch ba0b39a43b Unpickle job data lazily. This fixes issue #294. 11 years ago
Vincent Driessen 888d771d4d Merge pull request #287 from malthe/shed-times-dependency
Remove dependency on 'times' library (issue #286).
11 years ago
Vincent Driessen e1e2405150 Merge branch 'hotfix-0.3.13'
Conflicts:
	CHANGES.md
12 years ago
Vincent Driessen b52089ede1 Fix NameError.
This was the result of a faulty merge. I'm sorry.
12 years ago
Vincent Driessen cf98591ca5 Merge branch 'hotfix-0.3.12'
Conflicts:
	CHANGES.md
	rq/worker.py
12 years ago
Vincent Driessen d0fa35dc66 Python 2.6 fix. 12 years ago
Vincent Driessen 8414a67d65 Fix bug where worker died from monitoring views.
Fixes #288.

Conflicts:
	rq/worker.py
12 years ago
Malthe Borch c5a381fbe9 Remove dependency on 'times' library (see issue #286).
Basically, for the functionality needed, a dependency on 'times' (which
in turn depends on 'python-dateutil') seem unnecessary.
12 years ago
Vincent Driessen 9abbfc4dfb Use kwarg to specify connection. 12 years ago
Malthe Borch 1792a194bd Should pass a connection here because we might not be using a connection stack. 12 years ago
Joshua Chia ef2bbe762b Minor cleanup: Use Status enums instead of strings 12 years ago
reterVision c27cb5217c Remove duplicate function call. 12 years ago
Marc Brinkmann 3d0138d319 Added Worker.get_current_job() convenience method. 12 years ago
Marc Brinkmann c745f6811a Added job_id property, storing the id of the currently executing job. 12 years ago
Marc Brinkmann 606d4fa10f Add optional pipeline parameter to set_state. 12 years ago
Vincent Driessen 7fdd115e28 Merge branch 'jchia-master'
Conflicts:
	rq/job.py
	rq/queue.py
12 years ago
Vincent Driessen bb3dc5b0b2 Terminology change: waitlist -> dependents. 12 years ago
Joshua Chia b89d6c8990 Set timeout at Job creation instead of during enqueueing; made Queue.enqueue_call respect `timeout` when `after` is specified 12 years ago
Vincent Driessen 4dbbfc1d8f Merge pull request #252 from nvie/use-utc
Store birth and death values as UTC dates
12 years ago
Selwin Ong fcfe55fe13 Merge branch 'master' into job_dependency
Conflicts:
	rq/job.py
	rq/queue.py
12 years ago
Vincent Driessen aefa44b30c Store birth and death values as UTC dates. 12 years ago
Vincent Driessen 4d92079694 PEP8ify. 12 years ago
Alex Morega 5b630b1e22 port rqinfo to py3 12 years ago
Alex Morega 8d61d3bf26 port string handling to py3
Redis uses byte values for everything. We save queue names and job
IDs as unicode. So we need to convert every time we get data from redis.
12 years ago
Selwin Ong 6550f86646 Don't enqueue waitlisted jobs on failed execution. 12 years ago
Selwin Ong eadc7db29f First stab at writing implementing job dependency. 12 years ago
Vincent Driessen 5289647970 Remove unused import. 12 years ago
Selwin Ong 85e9014296 Moved some logic from worker.perform_job() to job.cleanup(). 12 years ago
Vincent Driessen e0866cdc6c Log the act of sending a heartbeat (DEBUG level). 12 years ago
Vincent Driessen e8c1885eda Avoid negative timeouts when default_worker_ttl is < 60. 12 years ago
Yaniv Aknin 4925b09aa5 Set worker ttl and maintain it when idle/taking/finishing jobs
This change could use far better test coverage, but I'm not sure how to
test it without refactoring more of the code than I think is reasonable
in the scope of this work.
12 years ago