Celery: stuck in infinitly repeating timeouts (Timed out waiting for UP message)

a 夏天 提交于 2019-12-04 16:23:13

The answer seems to be that the signal worker_process_init requires the handler to not be blocking for more than 4 seconds.

http://celery.readthedocs.org/en/latest/userguide/signals.html#worker-process-init

Because my init function takes longer to execute, the worker will be terminated automatically. After that it naturally restarts and triggers the init function again, which then results in the worker being terminated again and so on.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!