【问题记录】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(

【问题记录】celery启动报错_第1张图片

解决方案

添加配置 :BROKER_CONNECTION_RETRY_ON_STARTUP=True

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

你可能感兴趣的:(java,数据库,开发语言)