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

This commit is contained in:
Bowen Liang 2024-04-09 16:14:43 +08:00 committed by GitHub
parent 10d6d50b6c
commit 28089c98c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"]: