Skip to content

Commit

Permalink
fix: skip Celery warning by setting broker_connection_retry_on_startu…
Browse files Browse the repository at this point in the history
…p config (#3188)
  • Loading branch information
bowenliang123 authored Apr 9, 2024
1 parent 10d6d50 commit 28089c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/extensions/ext_celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]:
Expand Down

0 comments on commit 28089c9

Please sign in to comment.