Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add expires option to CELERY_BEAT_SCHEDULE (#10205)

Przemysław Ładac6c5e46bd99c
diff --git a/saleor/settings.py b/saleor/settings.py
index 1faa856985..a7edae9bcb 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -585,6 +585,7 @@ if OBSERVABILITY_ACTIVE:
CELERY_BEAT_SCHEDULE["observability-reporter"] = {
"task": "saleor.plugins.webhook.tasks.observability_reporter_task",
"schedule": OBSERVABILITY_REPORT_PERIOD,
+ "options": {"expires": OBSERVABILITY_REPORT_PERIOD.total_seconds()},
}
# Change this value if your application is running behind a proxy,