From 1e42154d3481840ea293e13eb145e310d9afb8fc Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Wed, 17 Jan 2024 16:27:30 +0000 Subject: [PATCH] fix: Temporarily disable deliver subscription report task (#19814) --- ee/tasks/subscriptions/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ee/tasks/subscriptions/__init__.py b/ee/tasks/subscriptions/__init__.py index a5adc7a640763..7be2f2cf1ca22 100644 --- a/ee/tasks/subscriptions/__init__.py +++ b/ee/tasks/subscriptions/__init__.py @@ -1,6 +1,7 @@ from datetime import datetime, timedelta from typing import Optional +from django.conf import settings import structlog from prometheus_client import Counter from sentry_sdk import capture_exception, capture_message @@ -146,6 +147,8 @@ def schedule_all_subscriptions() -> None: @app.task() def deliver_subscription_report(subscription_id: int) -> None: + if not settings.TEST: + return return _deliver_subscription_report(subscription_id)