SandboxRetryOptions¶
- class baseten.sandbox.SandboxRetryOptions(*, read_max_retries=None, gateway_max_retries=None, upload_max_retries=None)¶
Bases:
objectRetry budgets for transient failures.
Retries only ever apply to operations that are safe to repeat, such as reads. Operations with side effects, such as running a process or creating a sandbox, are never retried. Each budget counts retries after the first attempt, so 0 disables that kind of retry.
- Parameters:
- gateway_max_retries: int | None = None¶
Retries after the edge in front of a sandbox answers 502, 503, or 504.
Each attempt can take as long as the edge’s own timeout, so this is kept small. Defaults to 2.