: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
from datetime import timedelta
from temporalio.common import RetryPolicy
FINALIZATION_TIMEOUT = timedelta(minutes=1)
PROVISION_TIMEOUT = timedelta(minutes=5)
PREPARATION_TIMEOUT = timedelta(minutes=10)
EXECUTION_TIMEOUT = timedelta(minutes=50)
HANDOFF_TIMEOUT = timedelta(minutes=5)
LOCAL_PACKAGE_PREPARATION_TIMEOUT = timedelta(minutes=20)
CLEANUP_TIMEOUT = timedelta(minutes=5)
FINALIZATION_RETRY_POLICY = RetryPolicy(maximum_attempts=3)
PROVISION_RETRY_POLICY = RetryPolicy(maximum_attempts=1)
PREPARATION_RETRY_POLICY = RetryPolicy(maximum_attempts=3)
EXECUTION_RETRY_POLICY = RetryPolicy(maximum_attempts=1)
HANDOFF_RETRY_POLICY = RetryPolicy(
initial_interval=timedelta(seconds=30),
backoff_coefficient=2.0,
maximum_interval=timedelta(minutes=2),
maximum_attempts=5,
)
LOCAL_PACKAGE_PREPARATION_RETRY_POLICY = RetryPolicy(maximum_attempts=1)
CLEANUP_RETRY_POLICY = RetryPolicy(maximum_attempts=3)