Commit Graph

210 Commits

Author SHA1 Message Date
Selwin Ong 2091c601b1 Merge pull request #451 from conslo/depend-on-unsaved-job-ids
Depend on unsaved job ids
2014-11-26 08:33:05 +07:00
Nic Cope 8fa184b86b Ensure the FinishedJobRegistry honors an 'infinite' result_ttl of -1 2014-11-25 20:30:05 -05:00
Travis Johnson b14f739dfe no need for that save anymore 2014-11-18 12:09:22 -05:00
Travis Johnson 82729c98dc test for id based job dependancies 2014-11-17 15:22:48 -05:00
Adam Wen cd0230cae3 make job description unicode friendly 2014-10-16 18:00:48 +08:00
zhangliyong 3d49784bcc Merge branch 'master' of github.com:nvie/rq into cli-rq-worker 2014-09-14 14:45:22 +07:00
Selwin Ong 2307bc8253 Added FinishedJobRegistry to monitor finished jobs. 2014-09-14 10:29:17 +07:00
Selwin Ong 74a9982ecb Fixed a bug where expired jobs aren't deleted from JobStartedRegistry. 2014-09-13 17:13:18 +07:00
Selwin Ong 18c6ea64ef Merge pull request #419 from selwin/registry-len
Added JobStartedRegistry.count
2014-09-12 16:01:44 +07:00
zhangliyong f9511664c8 Make flake8 happy :) 2014-09-12 14:28:41 +07:00
zhangliyong 94e494e645 Add testcase for rq worker command 2014-09-12 14:27:29 +07:00
zhangliyong 918403e371 Update test_cli 2014-09-12 11:36:55 +07:00
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
2014-09-10 00:42:50 +07:00
Selwin Ong c1dc30eae3 Added __len__ method to Queue. 2014-09-10 00:00:16 +07:00
Selwin Ong fae7df5aa7 Renamed StartedJobRegistry.get_job_count to StartedJobRegistry.count for consistency. 2014-09-09 23:58:35 +07:00
Selwin Ong 41ae1ce8a7 Added a registry.get_job_count(). 2014-09-09 23:54:33 +07:00
Cal Leeming 6aa2e18f88 Another unused import, oops 2014-09-09 17:47:41 +01:00
Vincent Driessen 7686785d61 Merge branch 'selwin-working-queue'
Conflicts:
	tests/test_worker.py
2014-09-08 20:37:10 +02:00
Vincent Driessen 4b7c59d68d Fix PEP8 complaints. 2014-09-08 20:29:24 +02:00
Selwin Ong 6d79082b62 Call move_expired_jobs_to_failed_queue before returning job_ids. 2014-09-08 23:04:18 +07:00
Selwin Ong dc12f8aee5 Fixed random registry failures when run on slower machines. 2014-09-08 22:54:04 +07:00
Selwin Ong 9341a4a33d Renamed WorkingQueue to StartedJobRegistry. 2014-09-08 22:46:26 +07:00
Selwin Ong 4d90cc062e Add job to WorkingQueue before execution and remove from WorkingQueue after. 2014-09-08 22:46:25 +07:00
Selwin Ong a28575088b Implemented WorkingQueue.cleanup(). 2014-09-08 22:44:54 +07:00
Selwin Ong 3dc008d090 Added WorkingQueue class. 2014-09-08 22:44:54 +07:00
Vincent Driessen 9ab46804c6 Merge pull request #417 from foxx/feature/testworker
Added test worker for unit tests - fixes #413
2014-09-08 13:15:54 +02:00
foxx 52c3ad0fbf Renamed to SimpleWorker 2014-09-08 11:43:41 +01:00
foxx 23cae3a420 Fixed bug caused by broken merge, my bad 2014-09-08 11:41:22 +01:00
foxx 16ee71f26d Use class for test worker, and performs PID check in unit tests, #412 2014-09-08 11:37:14 +01:00
Vincent Driessen dab8373311 Fix all tests. 2014-09-06 12:30:41 +02:00
Vincent Driessen c860beb4d5 Fix broken imports. 2014-09-06 11:38:57 +02:00
Vincent Driessen fc803f5d0d Fix various flake8 complaints. 2014-09-06 08:04:09 +02:00
foxx 72bc9e37b7 Forced job_id to only allow str/unicode 2014-09-05 19:39:28 +01:00
foxx 05c1d4fa4b Added better job ID tests 2014-09-05 15:23:48 +01:00
foxx 6bb8b26114 Allow job ID to be set on enqueue/enqueue_call() - fixes #412 2014-09-05 14:31:33 +01:00
zhangliyong 5883bb9efe Make pep8 2014-09-01 14:16:28 +07:00
zhangliyong 0ddd174868 Fix invoking requeue command bug in test_requeue 2014-09-01 14:13:40 +07:00
zhangliyong 8782b11f1e Adjust test_requeue 2014-09-01 14:08:36 +07:00
zhangliyong 1ab92602e8 Add testcase for rq_cli 2014-08-22 10:08:53 +08:00
Vincent Driessen 3ded050804 Replace by a string just as wide to not make this invalid binary pickle data. 2014-07-26 11:59:37 +02:00
Vincent Driessen 79db282879 Support enqueueing callable classes.
Fixes #388.
2014-07-26 09:34:01 +02:00
Vincent Driessen 12932a433b Merge pull request #382 from selwin/cancel-should-remove-from-queue
job.cancel() should remove itself from queue
2014-07-24 11:26:35 +02:00
Selwin Ong 638211df20 job.cancel() should remove itself from queue. 2014-07-15 09:59:55 +07:00
Selwin Ong 7ac1c3500a Worker.__init__ should accept custom job class. 2014-05-30 08:56:00 +07:00
Selwin Ong 141278bb42 Queue.__init__ supports job_class argument. 2014-05-30 08:49:55 +07:00
Vincent Driessen eb469f8da0 Fix broken stub in tests. 2014-05-21 10:04:49 +02:00
Vincent Driessen da70ba580b Fix broken import. 2014-05-06 15:56:09 +02:00
Vincent Driessen c5939479b5 Merge remote-tracking branch 'origin/master' into SanyerMyasoedov-master
Conflicts:
	rq/decorators.py
	tests/__init__.py
	tests/test_decorator.py
2014-05-06 15:52:35 +02:00
Vincent Driessen ab9e6b852e Fix PEP8 complaints. 2014-05-05 10:50:02 +02:00
Vincent Driessen 38ec259b6e Enable the most modern Python syntax. 2014-05-05 10:50:02 +02:00