Skip to content

: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.

fix(workflows): retry realtime cohort resumes across the full 24h wait (#120188)

Harley Alexander654592cd17a2
diff --git a/products/workflows/backend/tasks/batch_jobs.py b/products/workflows/backend/tasks/batch_jobs.py
index 276bc33b5b86..164a85657c0a 100644
--- a/products/workflows/backend/tasks/batch_jobs.py
+++ b/products/workflows/backend/tasks/batch_jobs.py
@@ -15,7 +15,9 @@ from products.workflows.backend.services.batch_jobs import resume_batch_jobs_wai
autoretry_for=(Exception,),
retry_backoff=True,
# The ready signal fires once, so the retries span the run's 24-hour wait at up to 10 minutes apart,
- # and a CDP API outage that ends before the deadline still wakes the run.
+ # and a CDP API outage that ends before the deadline still wakes the run. Jitter would cut each wait
+ # to a random fraction and end the retries after about 12 hours.
+ retry_jitter=False,
retry_backoff_max=600,
max_retries=150,
)