Celery: stuck in infinitly repeating timeouts (Timed out waiting for UP message)
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I defined some tasks with a time limit of 1200: @celery.task(time_limit=1200) def create_ne_list(text): c = Client() return c.create_ne_list(text) I'm also using the worker_process_init signal to do some initialization, each time a new process starts: @worker_process_init.connect def init(sender=None, conf=None, **kwargs): init_system(celery.conf) init_pdf(celery.conf) This initialization function takes several seconds to execute. Besides that, I'm using the following configuration: CELERY_RESULT_SERIALIZER = 'json' CELERY_TASK_SERIALIZER =