Zor*_*gan 5 python django rabbitmq celery supervisord
我的芹菜日志显示此错误:
UserWarning: A node named celery@postr is already using this process mailbox!
Maybe you forgot to shutdown the other node or did not do so properly?
Or if you meant to start multiple nodes on the same host please make sure
you give each node a unique node name!
warnings.warn(W_PIDBOX_IN_USE.format(node=self))
Run Code Online (Sandbox Code Playgroud)
如何关闭另一个节点?
PS:有没有办法查看当前所有正在运行的节点?
假设您使用的是 UNIX,您可以通过以下方式查看正在运行的进程:
ps aux | grep celery
Run Code Online (Sandbox Code Playgroud)
这将向您显示正在运行的进程 ID 的列表,例如。1111、2222 和 3333。然后您可以通过发送TERM信号来关闭 celery 进程:
kill -TERM 1111 2222 3333
Run Code Online (Sandbox Code Playgroud)
根据您的配置,您的 celery 进程可能会生成多个子进程,您可以在 /var/run/celery.pid 等内容中看到父进程 ID
请参阅:https ://docs.celeryproject.org/en/stable/userguide/workers.html#stopping-the-worker
| 归档时间: |
|
| 查看次数: |
271 次 |
| 最近记录: |