An invocation moves through admission, scheduling, execution and a terminal outcome. Invocation.status() exposes the current state without waiting, while result() waits for completion and returns the value or raises the corresponding execution error. Logs, results, failures, cancellation and settled usage belong to the same invocation lifecycle.
Core Concepts
Execution Lifecycle
Follow a Task invocation from submission to terminal state.
Execution explanation
What happens when you run this?#
- 01
The CLI or Python SDK packages the declared module and submits it through Yak’s authenticated client boundary.
- 02
Yak schedules the work or activates the declared endpoint, then runs Python on isolated Linux compute.
- 03
Logs and the terminal result are made available through the same client boundary.