🚨(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:
committed by
aleb_the_flash
parent
f67335f306
commit
223c744e3f
@@ -1,8 +1,9 @@
|
|||||||
|
"""Celery Config."""
|
||||||
|
|
||||||
# https://github.com/danihodovic/celery-exporter
|
# https://github.com/danihodovic/celery-exporter
|
||||||
# Enable task events for Prometheus monitoring via 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.
|
# allowing the exporter to track task execution metrics and durations.
|
||||||
worker_send_task_events = True
|
worker_send_task_events = True
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ celery = Celery(
|
|||||||
broker_connection_retry_on_startup=True,
|
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:
|
if settings.sentry_dsn and settings.sentry_is_enabled:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user