Commit Graph

837 Commits (d4b72d330d05d2a988de19056e3ec2d5794c1344)
 

Author SHA1 Message Date
Travis Johnson d4b72d330d test for skip_queue mechanics
Selwin Ong 2091c601b1 Merge pull request from conslo/depend-on-unsaved-job-ids
Depend on unsaved job ids
Selwin Ong e3fb606a19 Merge pull request from negz/spotify-freeze
Ensure the FinishedJobRegistry honors an 'infinite' result_ttl of -1
Nic Cope 8fa184b86b Ensure the FinishedJobRegistry honors an 'infinite' result_ttl of -1
Travis Johnson b14f739dfe no need for that save anymore
Travis Johnson af4b0436c1 instantiate a job instead of fetch
this removes the need for the depended on job.id already being saved
Selwin Ong 786d3c5887 Merge pull request from conslo/patch-1
allow depends_on to be a job id or a job itself
Travis Johnson 82729c98dc test for id based job dependancies
Travis Johnson 629b392924 add PyCharm .idea folder to .gitignore
Travis Johnson 14d1186241 use internal job_class for check
Travis Johnson 3467868f1f allow depends_on to be a job id or a job itself
Other parts of the code (i.e.: the `.create()` method) allow the `depends_on` kwarg to be a `Job` object *or* a job id. This is an attempt to allow that same idea within the `.enqueue_call()` method for a queue. Since this part of the code requires actually knowing the precise redis key for the job that's depended on, my intuition is that a `.fetch()` is the only way to solve this.
Selwin Ong 0dbe68527c Merge pull request from negz/worker-redis-bug
Pass the default worker connection into the started and finished registries
Selwin Ong 51f641698d Merge pull request from adamwen829/master
fix issue 
Adam Wen f5001a0e36 fix decode error in py3.
Adam Wen 1795e1ee53 fix decode
Adam Wen cd0230cae3 make job description unicode friendly
Nic Cope de0b501823 Pass the default worker connection into the started and finished registries
In practice all the registry methods are called with pipelines, but if no
connection is passed in when instantiating the registry and the connection
stack is empty resolve_connection will raise NoRedisConnectionException.
Selwin Ong ae7b5f60db Merge pull request from techtonik/patch-1
README.md: Fix Rescue URL
anatoly techtonik 79f169734a README.md: Fix Rescue URL
Vincent Driessen bc6d30e473 Merge pull request from zhangliyong/cli-rq-worker
Convert `rqworker` to `rq worker` subcommand
zhangliyong 6621105bde Use type instead of default to specify interval option type
zhangliyong 3d49784bcc Merge branch 'master' of github.com:nvie/rq into cli-rq-worker
Vincent Driessen 45ac484c5c Merge pull request from selwin/finished-registry
Added FinishedJobRegistry to monitor/view completed jobs
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 1b39996bf7 Make pep8
zhangliyong 94e494e645 Add testcase for rq worker command
zhangliyong c6033b312e Cleanup
zhangliyong 918403e371 Update test_cli
zhangliyong 6510bb46f3 Fix interval type bug, it should be float
zhangliyong 21c14c0e21 Cleanup
zhangliyong 4d91f136f8 Move redis url default value to connect function
So worker subcommand can retrieve redis url from config file if url
option value is None, otherwise url option value will never be None.
zhangliyong 4df076f3aa Retrieve url from config file
zhangliyong 229a00fee5 Cleanup
zhangliyong 88fe5124d8 Make pythonic
zhangliyong 907e71dc86 Make pythonic
zhangliyong f10c749b7c Use click's evvar to retrieve SENTRY_DSN environment value
zhangliyong 842f27294a Convert rqworker to 'rq worker' subcommand
zhangliyong 7b434a32eb Let cleanup_ghosts accept conn argument
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
foxx 30ea76ddd6 Fixed silly typo
foxx 0466562a13 Fixes from comments in
Added tox/vagrant tmp dir to gitignore
Removed unused import
Renamed id to job_id in enqueue_call() as per comments in 
Vincent Driessen 783b6f9ec7 Fix PEP8 complaint.
Vincent Driessen 7686785d61 Merge branch 'selwin-working-queue'
Conflicts:
	tests/test_worker.py