🚨(summary) lint celery_config module to pass ruff checks

Apply code formatting and style fixes to celery configuration
module to meet linting standards.
This commit is contained in:
lebaudantoine
2025-07-18 11:26:36 +02:00
committed by aleb_the_flash
parent f67335f306
commit 223c744e3f
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

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