Commit Graph

239 Commits (a37621a429f4598be6bfd1eb9332b761d351df46)

Author SHA1 Message Date
Tamir Duberstein 985a2664a4 Prevent `Queue#dequeue` from blowing the stack
In the case of many sequential jobs having been deleted, a recursive
implementation of `Queue#dequeue` is prone to blowing the stack in the
absence of tail-recursion support. Change the implementation from
recursive to iterative to work around this issue in CPython.
Selwin Ong 30b21ef06e Merge pull request from marklap/workerbirthdeath
add birth_date and death_date properties to Worker
Mark LaPerriere 636a537fa7 updates addressing @selwin comments for PR
alternativshik 219f21b637 Allow non-ASCII characters in arguments
get_call_string() failed if any arguments contained non-ASCII strings.

Fixes 
Selwin Ong 1005222371 Restored the ability to specify connection params in config
Mark LaPerriere 450c5969aa call register birth in the register birth test
Mark LaPerriere af5a8624a6 add tests for birth and death worker methods
Vincent Driessen b8d425b318 Various PEP8 fixes.
Vincent Driessen fac2b10309 Auto-sort imports using isort.
Selwin Ong 105b95e9b8 Fixed an error in super call.
Selwin Ong de1cd8a83c Fixed test error in Python 3.
Selwin Ong dac0be6cc7 Added DeferredJobsRegistry to keep track of deferred jobs.
Selwin Ong 3e674fbe6a queue.enqueue() should set job.origin.
Selwin Ong 7fd2ac8ca6 Added "DEFERRED" Job status for jobs that have unsatisfied dependencies.
Selwin Ong 0a0a81da6d Merge pull request from conslo/skip-queue
Skip queue
Jonathan Tushman 60c27d5a27 fixing xrange for python3 compatability
Jonathan Tushman 1ae5a12a81 merging master
Jonathan Tushman ccd41396f6 adding suspend with duration test
Travis Johnson 2667088b68 changed the kwarg, but forgot to change the test
Travis Johnson add4d625b6 Merge branch 'nvie' into skip-queue
Conflicts:
	rq/queue.py
Vincent Driessen cd0c3c9c1e Merge pull request from conslo/worker-hash
Worker hash
Jonathan Tushman 82333d2ad5 triggering shutdown by setting a redis flag
Selwin Ong e1801c5c44 Merge pull request from glaslos/job_ttl
TTL for jobs
Travis Johnson d4b72d330d test for skip_queue mechanics
Travis Johnson 6ef9177a7d 2.6 compatible set syntax
Travis Johnson de72f98fbe test for workers equality
Nic Cope 09cab7a90d Allow maximum job age to be specified when cleaning up or getting expired jobs from a registry.
This ensures that all jobs cleaned from a started registry end up in the failed queue.
glaslos 8a3fd91e2e renaming job.job_ttl to job.ttl
Selwin Ong 2091c601b1 Merge pull request from conslo/depend-on-unsaved-job-ids
Depend on unsaved job ids
Nic Cope 8fa184b86b Ensure the FinishedJobRegistry honors an 'infinite' result_ttl of -1
glaslos 55c541bc59 added job ttl to queue.enqueue()
Travis Johnson b14f739dfe no need for that save anymore
Travis Johnson 82729c98dc test for id based job dependancies
Adam Wen cd0230cae3 make job description unicode friendly
zhangliyong 3d49784bcc Merge branch 'master' of github.com:nvie/rq into cli-rq-worker
Selwin Ong 2307bc8253 Added FinishedJobRegistry to monitor finished jobs.
Selwin Ong 74a9982ecb Fixed a bug where expired jobs aren't deleted from JobStartedRegistry.
Selwin Ong 18c6ea64ef Merge pull request from selwin/registry-len
Added JobStartedRegistry.count
zhangliyong f9511664c8 Make flake8 happy :)
zhangliyong 94e494e645 Add testcase for rq worker command
zhangliyong 918403e371 Update test_cli
Selwin Ong 202be75b21 Merge pull request from foxx/feature/custom-job-ids
Allow job ID to be set on enqueue/enqueue_call() - fixes 
Selwin Ong c1dc30eae3 Added __len__ method to Queue.
Selwin Ong fae7df5aa7 Renamed StartedJobRegistry.get_job_count to StartedJobRegistry.count for consistency.
Selwin Ong 41ae1ce8a7 Added a registry.get_job_count().
Cal Leeming 6aa2e18f88 Another unused import, oops
Vincent Driessen 7686785d61 Merge branch 'selwin-working-queue'
Conflicts:
	tests/test_worker.py
Vincent Driessen 4b7c59d68d Fix PEP8 complaints.
Selwin Ong 6d79082b62 Call move_expired_jobs_to_failed_queue before returning job_ids.
Selwin Ong dc12f8aee5 Fixed random registry failures when run on slower machines.