異步的后臺任務簡單作業隊列:ewd

jopen 10年前發布 | 12K 次閱讀 ewd

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.baiduhome.net/lib/view/home/1414933859809

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!