214 Commits (361db4aa83757c32e2b94a6daf5460d6a9767bd9)

Author SHA1 Message Date
Javier Lopez 8e24d3a92d job.py: Fix cancel failure on failed queue 9 years ago
Selwin Ong 8b7b0e5584 Merge pull request #701 from jlopex/javi/fix_issue_700
Fixes issue #700
9 years ago
Javier Lopez c5e62c70bb job.py: Use fetch to get a complete Job instance 9 years ago
amyangfei 724c844378 Don't call job.cancel if job has finished 9 years ago
zfz c2374c8035 Correct the comment of job's requeue function. 9 years ago
Selwin Ong 2485334100 Merge pull request #609 from tornstrom/master
Allow meta when enqueing
10 years ago
SkyLothar 70b5554566 make sure exc_info is text type 10 years ago
Tornstrom 50a114a0a8 Allow meta when enqueing 10 years ago
Selwin Ong 45addbcaf2 Deleted job.set_started_at_now. 10 years ago
Selwin Ong 364919c7c8 Moved job.hset_value to connection._hset. 10 years ago
Selwin Ong 5afd1a90e5 Merge pull request #589 from samuelcolvin/job-started_at
add job.started_at
10 years ago
Samuel Colvin 6fc34dc6a6 moving started_at to prepare_job_execution 10 years ago
glaslos 0a6df13d9d delete dependents and delete in cleanup. Fixed tests. 10 years ago
glaslos d2eeb3b3db job.cancel before delete and doc string fixes 10 years ago
glaslos 02844034d7 Merge branch 'master' into cancel_remove 10 years ago
glaslos 5a3bebf85b only remove from queue on job.cancel 10 years ago
Samuel Colvin 082e61a212 add job.started_at 10 years ago
likeon fc4124e39c Fixes Job.__eq__ crash when other object doesn't have id attribute 10 years ago
Vincent Driessen 94258761ae Make string formatting consistent 10 years ago
Marcus Martins 513f6310d2 Change default TTL to None insted of -1 10 years ago
Marcus Martins 5b8726ad2d Fixes #502
Fixes some broken tests and misbehaviour with ttls. There was a temporal
coupling between saving the job and setting its expires parameter.
10 years ago
Neal Todd bac6699ea4 Allow non-ASCII characters in keyword arguments. 10 years ago
Selwin Ong cff6fbff41 Merge pull request #477 from glaslos/ttl_tests_fixes
TTL tests and fixes
10 years ago
glaslos 071c47dacb hard-coded TTL to -1 on job.perform()
Removed merge artifacts
10 years ago
Serhii Maltsev 91f263d8e0 change try/except in python2/3 compatibility to to_text() 10 years ago
glaslos 3d4d6a86d5 persist the job right before execution 11 years ago
alternativshik 219f21b637 Allow non-ASCII characters in arguments
get_call_string() failed if any arguments contained non-ASCII strings.

Fixes #406
11 years ago
Vincent Driessen fac2b10309 Auto-sort imports using isort. 11 years ago
Selwin Ong dac0be6cc7 Added DeferredJobsRegistry to keep track of deferred jobs. 11 years ago
Selwin Ong 3e674fbe6a queue.enqueue() should set job.origin. 11 years ago
Selwin Ong 7fd2ac8ca6 Added "DEFERRED" Job status for jobs that have unsatisfied dependencies. 11 years ago
Jonathan Tushman 1ae5a12a81 merging master 11 years ago
Jonathan Tushman 82333d2ad5 triggering shutdown by setting a redis flag 11 years ago
glaslos c6a83eaa82 calling self.cleanup to set job expiration 11 years ago
glaslos 8a3fd91e2e renaming job.job_ttl to job.ttl 11 years ago
glaslos 55c541bc59 added job ttl to queue.enqueue() 11 years ago
zhangliyong f9511664c8 Make flake8 happy :) 11 years ago
Selwin Ong 202be75b21 Merge pull request #415 from foxx/feature/custom-job-ids
Allow job ID to be set on enqueue/enqueue_call() - fixes #412
11 years ago
foxx 0466562a13 Fixes from comments in #415
Added tox/vagrant tmp dir to gitignore
Removed unused import
Renamed id to job_id in enqueue_call() as per comments in #415
11 years ago
Selwin Ong 60c7a3cc6e working_queue.remove call should be pipelined. 11 years ago
foxx b6499ce71c Fixed another py3 bug - my bad. Also moved type checking further down 11 years ago
foxx f5779c194f Renamed job_id to id, and fixed py3 bug, per #415 11 years ago
foxx 2753f17e8e Fixed bug with format() in py3 11 years ago
foxx 72bc9e37b7 Forced job_id to only allow str/unicode 11 years ago
foxx 6bb8b26114 Allow job ID to be set on enqueue/enqueue_call() - fixes #412 11 years ago
Vincent Driessen 3de8a47f06 Merge pull request #390 from selwin/pipeline-dependency-registration
job.register_dependency() should support pipelining
11 years ago
Selwin Ong fc19a64670 job.register_dependency() should support pipelining. 11 years ago
Vincent Driessen b91b89a183 Use highest pickle protocol version to serialize job data. 11 years ago
Vincent Driessen 79db282879 Support enqueueing callable classes.
Fixes #388.
11 years ago
Vincent Driessen 865efd6e8c Leave setting the state to the worker, not the Job itself.
Should fix #389.
11 years ago
Vincent Driessen eb6fb27281 Change confusing method name. 11 years ago
Vincent Driessen 6299af15fc Merge branch 'master' of github.com:nvie/rq 11 years ago
Selwin Ong 638211df20 job.cancel() should remove itself from queue. 11 years ago
Andrew Gorcester 17a4ed056d use warnings.warn() instead of raise for DeprecationWarning 11 years ago
Vincent Driessen ab9e6b852e Fix PEP8 complaints. 11 years ago
Vincent Driessen 38ec259b6e Enable the most modern Python syntax. 11 years ago
Vincent Driessen 4746602c57 Explicit string check in Job constructor. 11 years ago
Vincent Driessen 057c4657ef Fix whitespace. 11 years ago
Vincent Driessen fdf4abcf69 Fix pipeline call. 11 years ago
Selwin Ong 835c353380 Job status should be updated during job.perform(). 12 years ago
Selwin Ong f5c3c9a6dd Deprecate job.status. 12 years ago
Malthe Borch ad529e2609 Add repr for (showing id and enqueue time). 12 years ago
Sylvain Zimmer f0a3dd262e Added connection argument to get_current_job() 12 years ago
Vincent Driessen 44233709ed Allow two-way setting of job data properties.
As a side-effect, this also enables us to lazily load the data.
12 years ago
Vincent Driessen 66a554bc29 Change AssertionError to proper TypeError. 12 years ago
Malthe Borch ce3924c901 Just use a regular private method along with 'property'. 12 years ago
Malthe Borch c898fe618e Move seemingly general purpose decorator into class scope, use and delete.
Also, reduce repeat attribute declarations, at the cost of a
requirement that decorated functions appear in the right order.
12 years ago
Malthe Borch ba0b39a43b Unpickle job data lazily. This fixes issue #294. 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
Selwin Ong e4589a4641 job.cancel() should be pipelined. 12 years ago
Vincent Driessen af87cce382 Merge branch 'selwin-custom-worker' 12 years ago
Selwin Ong 28dcb5dcd1 Renamed "--worker" flag to "--worker-class". 12 years ago
Selwin Ong 8aa5771646 job.cancel() now deletes dependents_key 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
Selwin Ong 15c4b562ba Reverse dependency mapping should be a set instead of a list. 12 years ago
Selwin Ong 93e5e552b7 Replaced "after" kwarg with "depends_on". 12 years ago
Selwin Ong fd44ad39d4 Python 3 fixes for job dependency stuff. 12 years ago
Selwin Ong fcfe55fe13 Merge branch 'master' into job_dependency
Conflicts:
	rq/job.py
	rq/queue.py
12 years ago
Vincent Driessen 537476b488 PEP8ify. 12 years ago
Sylvain Zimmer a296619074 Split Job.dump() and Job.save() 12 years ago
H. İbrahim Güngör 10bda9684d Pass description parameter to job constructor in order to distinguish job names in queue.jobs or in rq-dashboard. Add related test case. 12 years ago
Alex Morega 328e7611d3 use utf-8 instead of ascii 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
Alex Morega 6eeee85cc3 remove backwards compat for custom properties 12 years ago
Alex Morega a3b5ce5e46 accomodate py3 imports and builtins 12 years ago
Alex Morega a75ea0d693 changes by python-modernize 12 years ago
Selwin Ong 2e826e2b1f Internally renamed the term "parent" to "dependency". 12 years ago
Selwin Ong 0dfb041383 Simplify enqueue_waitlist by using lpop. 12 years ago
Selwin Ong eadc7db29f First stab at writing implementing job dependency. 12 years ago
Selwin Ong a0c9267550 Job.create should also accept arguments in list format. 12 years ago
Vincent Driessen 5a5e14cc70 Merge branch 'hotfix/0.3.7'
Conflicts:
	CHANGES.md
	rq/version.py
13 years ago
Vincent Driessen 66741fff7b Fix bug where workers would not execute builtin functions properly. 13 years ago
Selwin Ong 85e9014296 Moved some logic from worker.perform_job() to job.cleanup(). 13 years ago
Vincent Driessen 501a3870e1 Ignore a job when there isn't a "data" key available. 13 years ago
Vincent Driessen 192770773a Remove unused import. 13 years ago
Vincent Driessen 83525c42c7 Prevent against 'created_at' field being None. 13 years ago
Vincent Driessen 67880343f1 Make inner_exception optional, and use new except syntax. 13 years ago
Idan Kamara 2baa2e370f job: save the real exception when unpickling fails
We raise our own exception which hides the real error (often an ImportError),
making it difficult to see what happend. Instead, save the original exception
too.
13 years ago