Expand description
Task lifecycle event.
TaskEvent records append-only lifecycle changes for a Task.
§How to use this object
- Append events as the scheduler creates, starts, blocks, finishes, fails, or cancels task execution.
- Set
run_idwhen the event is associated with a concreteRun. - Keep the
Tasksnapshot itself stable.
§How it works with other objects
TaskEvent.task_idpoints at the durable task definition.run_idoptionally links the state change to a specific execution attempt.
§How Libra should call it
Libra should reconstruct current task status from event history and
scheduler state instead of storing mutable task status inside
Task.
Structs§
- Task
Event - Append-only lifecycle fact for one
Task.