Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

🚨(summary) lint celery_config module to pass ruff checks

lebaudantoine223c744e3f4e
diff --git a/src/summary/summary/core/celery_config.py b/src/summary/summary/core/celery_config.py
index dc192d0e..c143b579 100644
--- a/src/summary/summary/core/celery_config.py
+++ b/src/summary/summary/core/celery_config.py
@@ -1,8 +1,9 @@
+"""Celery Config."""
# https://github.com/danihodovic/celery-exporter
# Enable task events for Prometheus monitoring via celery-exporter.
-# worker_send_task_events: Sends task lifecycle events (e.g., started, succeeded, failed),
+# worker_send_task_events: Sends task lifecycle events (e.g., started, succeeded),
# allowing the exporter to track task execution metrics and durations.
worker_send_task_events = True
diff --git a/src/summary/summary/core/celery_worker.py b/src/summary/summary/core/celery_worker.py
index a4be696e..187de4b9 100644
--- a/src/summary/summary/core/celery_worker.py
+++ b/src/summary/summary/core/celery_worker.py
@@ -37,7 +37,7 @@ celery = Celery(
broker_connection_retry_on_startup=True,
)
-celery.config_from_object('summary.core.celery_config')
+celery.config_from_object("summary.core.celery_config")
if settings.sentry_dsn and settings.sentry_is_enabled: