:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(workflows): scope replay_blocked_run validation to incident window (#58667)
Robbie4402f8743cbd
diff --git a/posthog/api/hog_flow.py b/posthog/api/hog_flow.pyindex 566b32e37c63..39f64ef3643f 100644--- a/posthog/api/hog_flow.py+++ b/posthog/api/hog_flow.py@@ -788,7 +788,8 @@ class HogFlowViewSet(TeamAndOrgViewSetMixin, LogEntryMixin, AppMetricsMixin, vieAND log_source_id = %(log_source_id)sAND instance_id = %(instance_id)sAND positionCaseInsensitiveUTF8(message, 'duplicate execution detected') > 0- AND timestamp >= toDate(NOW() - INTERVAL 30 DAY)+ AND timestamp >= toDateTime('2026-03-30 00:00:00')+ AND timestamp <= toDateTime('2026-04-23 00:00:00')LIMIT 1""",{"team_id": self.team_id, "log_source_id": str(hog_flow.id), "instance_id": instance_id},