celery任务进程关闭

方法1:

ps auxww|grep "celery worker"|grep -v grep|awk '{print $2}'|xargs kill -9

方法2:

Ctrl+C

方法3:

celery multi 管理

celery multi start w1 -A proj -l info
celery  multi restart w1 -A proj -l info

# 异步关闭 立即返回
celery multi stop w1 -A proj -l info
# 等待关闭操作完成
celery multi stopwait w1 -A proj -l info
原文地址:https://www.cnblogs.com/zhengze/p/10402658.html