- 通过 ping 检测所有在线的 worker:
from xxx import app
app.control.ping(timeout=0.5)
- 根据ping 命令返回的结果停止某个worker
app.control.broadcast('shutdown', destination='worker@example.com')
参考: https://docs.celeryproject.org/en/stable/userguide/workers.html#remote-control