Generated API reference
yak.Invocation
Represents one remote Invocation of a Task.
Represents one remote Invocation of a Task.
provenance
c2e8cf7c309abe376f390072b94a9ecd3e633080Invocation.usage#
Return the backend-settled terminal resource usage projection.
Return the backend-settled terminal resource usage projection.
Returns#
Optional[dict]Return the backend-settled terminal resource usage projection.
Invocation.status#
Return the current durable invocation state without waiting.
Return the current durable invocation state without waiting.
status() -> dict
Returns#
dictThe server's current invocation state, including terminal usage
Raises#
ConnectionErrorIf the status request cannot reach the service.
Invocation.cancel#
Request idempotent cancellation through the control plane.
Request idempotent cancellation through the control plane.
cancel() -> dict
Returns#
dictThe server's cancellation state projection.
Raises#
ConnectionErrorIf the cancellation request cannot reach the
service.
Invocation.result#
Await the Invocation result until it completes.
Await the Invocation result until it completes.
result(stream_logs: bool = True, verbose_system_logs: bool = False) -> Any
Parameters#
| Name | Type | Default | Description |
|---|---|---|---|
stream_logspositional-or-keyword |
bool |
True |
Whether to stream logs to stdout/stderr (default True) |
verbose_system_logspositional-or-keyword |
bool |
False |
Show all system logs instead of progress indicators (default False) |
Returns#
AnyTask result
Raises#
InvocationExecutionErrorIf the Invocation failed during execution
InvocationCancelledErrorIf the invocation was cancelled before
producing a resultInvocationTimedOutErrorIf the invocation reached its execution
deadlineConnectionErrorIf gRPC call fails
Related guides
- 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.