Search documentation

Type to search the documentation.

Generated API reference

classyak.Invocation

yak.Invocation

Represents one remote Invocation of a Task.

Represents one remote Invocation of a Task.

Python SDK reference · Yak 0.1.19release v0.1.19
provenancec2e8cf7c309abe376f390072b94a9ecd3e633080
property

Invocation.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.

method

Invocation.status#

Return the current durable invocation state without waiting.

Return the current durable invocation state without waiting.

Signature
python
status() -> dict

Returns#

dict

The server's current invocation state, including terminal usage

Raises#

method

Invocation.cancel#

Request idempotent cancellation through the control plane.

Request idempotent cancellation through the control plane.

Signature
python
cancel() -> dict

Returns#

dict

The server's cancellation state projection.

Raises#

method

Invocation.result#

Await the Invocation result until it completes.

Await the Invocation result until it completes.

Signature
python
result(stream_logs: bool = True, verbose_system_logs: bool = False) -> Any

Parameters#

NameTypeDefaultDescription
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#

Any

Task result

Raises#

Related guides

Task execution Logs, Results & Failures Cancellation Resource Usage
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.