Explorar el Código

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

tags/0.6.1
Bowen Liang hace 1 año
padre
commit
28089c98c1
No account linked to committer's email address
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      api/extensions/ext_celery.py

+ 1
- 0
api/extensions/ext_celery.py Ver fichero

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

Cargando…
Cancelar
Guardar