Search documentation

Type to search the documentation.

Yak/Docs/Reference/Python SDK/InvocationOptions

Generated API reference

classyak.InvocationOptions

yak.InvocationOptions

Control-plane options kept separate from user function arguments.

Control-plane options kept separate from user function arguments.

timeout is a convenience in seconds. execution_timeout_ms is the
exact wire value. Supplying both is ambiguous and rejected.

Python SDK reference · Yak 0.1.19release v0.1.19
provenancec2e8cf7c309abe376f390072b94a9ecd3e633080
Signature
python
InvocationOptions(timeout: Optional[float] = None, execution_timeout_ms: Optional[int] = None)

Parameters#

NameTypeDefaultDescription
timeoutpositional-or-keyword Optional[float] None

Maximum execution time in seconds.

execution_timeout_mspositional-or-keyword Optional[int] None

Exact maximum execution time in milliseconds.

Raises#

  • ValueError

    If both timeout forms are supplied or a value is outside
    the bounded execution-time range.

method

InvocationOptions.execution_timeout#

Return the normalized wire timeout in milliseconds.

Return the normalized wire timeout in milliseconds.

Signature
python
execution_timeout() -> Optional[int]

Returns#

Optional[int]

A positive timeout in milliseconds, or None when no timeout

Raises#

  • ValueError

    If both timeout forms are supplied or a configured
    value is invalid.

BoundaryPreview limitations
  • This page is generated from the pinned release schema; update the site pin when a new release should be documented.
  • Lifecycle, persistence and operational context belong in the linked handwritten guides.