Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Sep 5, 2024
1 parent bd7f2f1 commit bd4ec44
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions posthog/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bd4ec44

Please sign in to comment.