: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(batch-exports): Yield event loop in between backfill calls (#64619)
Tomás Farías Santana751247a31bf5
diff --git a/products/batch_exports/backend/management/commands/backfill_batch_export_runs.py b/products/batch_exports/backend/management/commands/backfill_batch_export_runs.pyindex 91435b12feb6..dab9977b51be 100644--- a/products/batch_exports/backend/management/commands/backfill_batch_export_runs.py+++ b/products/batch_exports/backend/management/commands/backfill_batch_export_runs.py@@ -284,8 +284,9 @@ class Command(BaseCommand):overlap=overlap_policy,)await handle.backfill(backfill)- if not no_delay:- await asyncio.sleep(2)++ delay = 0 if no_delay else 2+ await asyncio.sleep(delay)return True