#[non_exhaustive]pub enum EventKind {
Show 21 variants
SubscriberPanicked,
RuntimeFailure,
SubscriberOverflow,
ShutdownRequested,
AllStoppedWithinGrace,
GraceExceeded,
AttemptStarting,
AttemptSucceeded,
AttemptCanceled,
AttemptFailed,
AttemptTimedOut,
BackoffScheduled,
TaskAddRequested,
TaskAdded,
TaskAddFailed,
TaskRemoveRequested,
TaskRemoved,
TaskFinished,
ControllerRejected,
ControllerSubmitted,
ControllerSlotTransition,
}Expand description
Classifies one best-effort runtime event.
Every Event has seq, at, and kind. Variant documentation lists the additional metadata
set by Taskvisor. Match on this value before reading optional metadata. This enum is non-exhaustive;
include a wildcard arm when matching it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SubscriberPanicked
A subscriber callback panicked.
Carries the subscriber name in task and panic details in reason.
RuntimeFailure
An internal runtime component failed or did not join cleanly.
Carries the component name in task and diagnostic details in reason.
SubscriberOverflow
An event path fell behind or closed before delivery.
task identifies the subscriber or internal relay.
dropped carries a loss count when known. reason contains diagnostic details.
ShutdownRequested
Explicit shutdown entered the shared shutdown workflow.
This includes a handle request, an application shutdown future, or a configured operating-system signal. Natural shutdown does not emit it.
AllStoppedWithinGrace
Registry task cleanup finished within the shared grace window.
A task force-aborted before this shutdown may still be physically active.
GraceExceeded
Registry task cleanup did not finish within the shared grace window.
AttemptStarting
A registered task is about to run one attempt.
Carries id, task, and the one-based attempt number.
AttemptSucceeded
One task attempt returned Ok(()).
This is not always the final task result. Carries id, task, attempt, and duration_ms.
AttemptCanceled
One task attempt returned TaskError::Canceled.
Carries id, task, attempt, and duration_ms.
AttemptFailed
One task attempt returned or produced a failure.
This includes retryable and fatal errors, task-returned timeouts, and caught task panics.
A configured deadline normally emits AttemptTimedOut.
Cleanup failure at that deadline emits this variant instead.
Carries id, task, attempt, duration_ms, reason, and an optional exit_code.
AttemptTimedOut
One task attempt exceeded its configured deadline.
Carries id, task, attempt, timeout_ms, and duration_ms.
BackoffScheduled
The task actor scheduled a delay before another attempt.
Carries id, task, the previous attempt, delay_ms, and backoff_source.
Failure backoff also carries the last error in reason.
TaskAddRequested
A task add request was published before registry processing.
This does not confirm admission. An all-or-nothing batch publishes one event per item before
sending its single registry command. Carries the reserved id and requested task name.
TaskAdded
Registry admission accepted the task.
The task body may not have started. Carries id and task.
TaskAddFailed
Registry admission rejected a task add.
No rejected task body starts. Batch rejection starts no item in the batch. Carries id, task,
diagnostic reason, TaskOutcomeKind::Rejected, and a registry RejectionKind.
TaskRemoveRequested
A remove or cancel request entered runtime or controller processing.
This is not proof that a target existed or reached terminal cleanup.
Carries id, an optional reason, and a task name when available.
TaskRemoved
Registry cleanup attempted the closing event for a removed task.
Registry membership is already absent. Final watched-outcome delivery, when requested,
was attempted first. A force-aborted task may still be physically active. Carries id and task.
TaskFinished
Registry cleanup classified the final outcome of a registered task.
Membership is already absent. This event is attempted before watched outcome delivery and
TaskRemoved. Except for force-abort, task execution is physically
joined first. Carries id, task, outcome_kind, and optional diagnostic reason
and exit_code. Use TaskWaiter when the final
outcome must not rely on best-effort event delivery.
ControllerRejected
controller only.The controller rejected a submission before registry admission.
Carries id, TaskOutcomeKind::Rejected, rejection_kind, diagnostic reason, and the slot name in task when known.
ControllerSubmitted
controller only.The controller accepted a submission into slot ownership or its queue.
Runtime registry admission and task execution may not have started.
Carries id, the slot name in task, and a diagnostic summary in reason.
ControllerSlotTransition
controller only.A controller slot changed admission state.
Carries the slot name in task and diagnostic transition text in reason.