Skip to content

Commit 8ff0bac

Browse files
committed
lint
1 parent 3cf87fb commit 8ff0bac

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/celery_app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ def queue_warmup_task(**kwargs) -> None:
2525
"""Queue classifier warm-up after the worker is fully ready."""
2626
del kwargs
2727

28-
if app_config["CELERY_TASK_ALWAYS_EAGER"] or not app_config["CELERY_WARM_ON_STARTUP"]:
28+
if (
29+
app_config["CELERY_TASK_ALWAYS_EAGER"]
30+
or not app_config["CELERY_WARM_ON_STARTUP"]
31+
):
2932
return
3033

3134
celery_app.send_task("src.tasks.warm_intent_classifier")

0 commit comments

Comments
 (0)