瀏覽代碼

fix: skip Celery warning by setting broker_connection_retry_on_startup config (#3188)

Bowen Liang 1 年之前
父節點
當前提交
28089c98c1
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      api/extensions/ext_celery.py

+ 1 - 0
api/extensions/ext_celery.py

@@ -28,6 +28,7 @@ def init_app(app: Flask) -> Celery:
 
     celery_app.conf.update(
         result_backend=app.config["CELERY_RESULT_BACKEND"],
+        broker_connection_retry_on_startup=True,
     )
 
     if app.config["BROKER_USE_SSL"]: