Skip to main content

Module task_event

Module task_event 

Source
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_id when the event is associated with a concrete Run.
  • Keep the Task snapshot itself stable.

§How it works with other objects

  • TaskEvent.task_id points at the durable task definition.
  • run_id optionally 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§

TaskEvent
Append-only lifecycle fact for one Task.

Enums§

TaskEventKind