Expand description
Ephemeral lifetime clock — TTL expiry + teardown-policy decisions.
The reconciler consults this module at each phase tick to decide whether a Process should auto-terminate:
- TTL is measured from
metadata.creation_timestamp(the most deterministic anchor — phaseSince resets per phase). - Teardown policy applies on
AttestedorFailedperEphemeralLifetime.teardown_policy.
Returning AutoTerminate::Now { reason } tells the caller to transition
the Process to Exiting. The phase machine handles the SIGTERM path
from there (children drained, finalizer guards owned resources).
Structs§
Enums§
- Auto
Terminate - Decision the phase machine acts on.
- Auto
Terminate Kind - The closed set of
AutoTerminatekinds — the discriminator view, payload-stripped, that sibling closed-set enums in this crate carry (seeTerminateReasonKind,crate::matrix::SelectStrategyKind,crate::lifetime::LifetimeKind). - Terminate
Reason - Why the ephemeral lifetime clock fired.
- Terminate
Reason Kind - The closed set of
TerminateReasonkinds — the discriminator view, payload-stripped, that sibling closed-set enums in this crate carry (seeProcessPhase,TeardownPolicy).
Functions§
- evaluate
- Inspect a Process at the given current phase and return whether the ephemeral lifetime clock fires now.
- requeue_
with_ ttl - Sleep budget the controller should requeue with for a Process whose
evaluate()returnedSkip— picks the smaller of HEARTBEAT and TTL-remaining so we don’t oversleep past expiry.