异步的后台任务简单作业队列:ewd

jopen 9年前

ewd是一个用于实现异步后台任务的简单作业队列。

Synopsis

ewd is a job queue and worker management system. Queues are declared in a crontab-like file along with the maximum number of concurrent workers and the command the workers will run.

$ cat /etc/ewd.conf  images 5 /usr/local/bin/process_images  stats 6 /usr/local/bin/generate_stats

Jobs in ewd are simply a list of arguments to pass to the command. Jobs can be added to the queue using a simple ASCII format, specifying the queue followed by the command arguments.

$ echo "images --image test.jpg --format png --size=1024x768" | nc ewd.foo.com 8277

项目主页:http://www.open-open.com/lib/view/home/1414933859809