【问题记录】celery启动报错

问题记录

celery启动后报错:
CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine whether broker connection retries are made during startup in Celery 6.0 and above. If you wish to retain the existing behavior for retrying connections on startup, you should set broker_connection_retry_on_startup to True. warnings.warn(

在这里插入图片描述

解决方案

添加配置 :BROKER_CONNECTION_RETRY_ON_STARTUP=True

celery = Celery(__name__, broker=Config.BROKER_URL, backend=Config.RESULT_BACKEND,BROKER_CONNECTION_RETRY_ON_STARTUP=True)

猜你喜欢

转载自blog.csdn.net/tyty2211/article/details/135397145