From dd4a2d75d70972c1969c2f3459cd6c6f80522025 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Tue, 9 Apr 2024 16:14:43 +0800 Subject: [PATCH] fix: skip Celery warning by setting broker_connection_retry_on_startup config (#3188) --- api/extensions/ext_celery.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/extensions/ext_celery.py b/api/extensions/ext_celery.py index fcb99a9e83b501..bd4755e76889ec 100644 --- a/api/extensions/ext_celery.py +++ b/api/extensions/ext_celery.py @@ -28,6 +28,7 @@ def __call__(self, *args: object, **kwargs: object) -> object: celery_app.conf.update( result_backend=app.config["CELERY_RESULT_BACKEND"], + broker_connection_retry_on_startup=True, ) if app.config["BROKER_USE_SSL"]: