From bd4ec4434610f63fbe32fa587dc88eea24ccd375 Mon Sep 17 00:00:00 2001 From: Ben White Date: Thu, 5 Sep 2024 15:03:35 +0200 Subject: [PATCH] Fix --- posthog/tasks/tasks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/posthog/tasks/tasks.py b/posthog/tasks/tasks.py index c5a6a0f393dfe..68cad94b93d81 100644 --- a/posthog/tasks/tasks.py +++ b/posthog/tasks/tasks.py @@ -16,7 +16,6 @@ from posthog.errors import CHQueryErrorTooManySimultaneousQueries from posthog.hogql.constants import LimitContext from posthog.metrics import pushed_metrics_registry -from posthog.models.team.team import Team from posthog.ph_client import get_ph_client from posthog.redis import get_client from posthog.tasks.utils import CeleryQueue @@ -190,9 +189,8 @@ def ingestion_lag() -> None: from statshog.defaults.django import statsd from posthog.client import sync_execute + from posthog.models.team.team import Team - # Requires https://github.com/PostHog/posthog-heartbeat-plugin to be enabled on team 2 - # Note that it runs every minute, and we compare it with now(), so there's up to 60s delay query = """ SELECT event, date_diff('second', max(timestamp), now()) FROM events