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(batch-exports): bump stage start-to-close timeout (#108189)

Ross8d57ee1a5047
diff --git a/products/batch_exports/backend/temporal/pipeline/entrypoint.py b/products/batch_exports/backend/temporal/pipeline/entrypoint.py
index 40e9dab078e1..8e0d9aa7544a 100644
--- a/products/batch_exports/backend/temporal/pipeline/entrypoint.py
+++ b/products/batch_exports/backend/temporal/pipeline/entrypoint.py
@@ -116,11 +116,11 @@ def _get_config_for_interval(
)
if interval == "hour":
- # TODO - we should reduce this to 1 hour once we are more confident about hitting 1 hour SLAs.
- # TODO: Review timeouts for internal stage activity.
return IntervalConfig(
+ # TODO - we should reduce this to 1 hour once we are more confident about hitting 1 hour SLAs.
main_start_to_close=max(dt.timedelta(hours=6), override_start_to_close),
- stage_start_to_close=dt.timedelta(hours=1),
+ # TODO - we should reduce this once we are more confident about hitting 1 hour SLAs.
+ stage_start_to_close=dt.timedelta(hours=2),
failure_check_window=24, # A day's worth of runs
)
diff --git a/products/batch_exports/backend/tests/test_file_download_timeouts.py b/products/batch_exports/backend/tests/test_file_download_timeouts.py
index b002ee4544b1..62b20cef8aa5 100644
--- a/products/batch_exports/backend/tests/test_file_download_timeouts.py
+++ b/products/batch_exports/backend/tests/test_file_download_timeouts.py
@@ -125,7 +125,7 @@ class TestFileDownloadTimeouts(SimpleTestCase):
@parameterized.expand(
[
- ("hour", 21600, 3600, 24),
+ ("hour", 21600, 7200, 24),
("day", 86400, 21600, 7),
("week", 259200, 86400, 4),
("every 5 minutes", 1200, 1200, 12),