芹菜花能够关闭工人,但无法重新启动它

时间:2014-09-03 12:34:24

标签: python django celery kombu flower

我安装了Celery,Django-Celery,Kombu&花。

芹菜花正在监控。它能够关闭工作人员但无法重新启动它们。

鲜花回复:

[I 140903 15:49:12 web:1856] 200 GET / (127.0.0.1) 77.49ms
[I 140903 15:49:13 web:1856] 304 GET /static/img/glyphicons-halflings.png (127.0.0.1) 17.01ms
[I 140903 15:54:27 web:1856] 304 GET / (127.0.0.1) 2.91ms
[I 140903 15:54:33 control:62] Shutting down 'celery@ftp_fastq' worker
[I 140903 15:54:33 web:1856] 200 POST /api/worker/shutdown/celery%40ftp_fastq (127.0.0.1) 4.03ms
[I 140903 15:54:40 control:103] Restarting 'celery@ftp_fastq' worker's pool
[E 140903 15:54:41 control:112] []
[W 140903 15:54:41 web:1856] 403 POST /api/worker/pool/restart/celery%40ftp_fastq (127.0.0.1) 1037.44ms

1 个答案:

答案 0 :(得分:1)

Flower远程控制芹菜。所以,我必须在配置文件中设置CELERYD_POOL_RESTARTS = True

您可以从芹菜本身检查是否启用pool_restart

from celery.task.control import broadcast
broadcast('pool_restart')