tsuyukimakoto / qamasu
Qamasu is JobQueue system that respects TheSchwartz. Queue can be managed through WebIF someday.
$ hg clone http://bitbucket.org/tsuyukimakoto/qamasu/
Qamasu . Job Queue Application written in Python
Qamasu is JobQueue system that respects TheSchwartz.
Requirements
((Python2.5 and simplejson) or Python2.6) and Django1.0
Usage
Set Qamasu up!
Qamasu is a Django application.
You need add qamasu to your or new django project's INSTALLED_APPS.
And manage.py syncdb.
Write your worker.
Define GRAB_FOR in seconds that is max time worker grabbed for a work.
Define def work_safely(manager, job): that is a work you need.
See sample worker in workers directory for detail.
Registration
You need add worker to abilities.
Queue!
Add hundreds Queues.
then.
A highest-priority queue is added.
Work! Work! Work!
FIFO.
Respect to priority.
Caution!
For MySQL backend
You must set worker's transaction isolation level to read commited before working qamasu when you use InnoDB.
Or you have to set transaction isolation level read committed. It's global settings and dangerous.
This revision is from 2009-10-11 16:34
