Celery--命令行

1.启动一个或多个worker
$ celery multi start w1 -A proj -l info
立即停止:
$ celery multi stop w1 -A proj -l info
执行完当前任务就停止:
$ celery multi stopwait w1 -A proj -l info
 
2.指定log位置,pid位置,hostname
示例1:
$ celery -A celery_app worker -l INFO --logfile=./logs/worker.log --pidfile=w1.pid --hostname=w1@mock-test-50-89
 
示例2:
$ celery multi start 10 -A proj -l info -Q:1-3 images,video -Q:4,5 data -Q default -L:4,5 debug
 
 

原文地址:https://www.cnblogs.com/absoluteli/p/14016916.html