pub enum ParkReason {
Suspended {
reason: String,
input_schema: Value,
kind: Option<SuspensionKind>,
},
BudgetExceeded {
budget: Budget,
observed: f64,
},
Sleeping {
wake_at: OffsetDateTime,
},
}Expand description
Why a run parked instead of completing.
Variants§
Suspended
A tool suspended the run, awaiting input matching the schema.
Fields
kind: Option<SuspensionKind>What the run is waiting on, carried from the recorded event.
None is a person: someone reads the reason, decides, and supplies
the input. A SuspensionKind names a wait an external system
answers instead, which a report about the park has to say out loud,
because telling an operator to go and approve something no operator
can approve is worse than saying nothing.
BudgetExceeded
A declared budget was crossed. Resume may carry an extension.
Fields
Sleeping
A durable timer is running and its instant has not arrived. Nothing is
awaited from anyone: the run continues when something re-drives it at
or after wake_at, which is what salvor wake and the server’s wake
sweeper do. A resume carrying input is not what this park wants.
Fields
wake_at: OffsetDateTimeThe recorded instant the run may continue at.
Trait Implementations§
Source§impl Clone for ParkReason
impl Clone for ParkReason
Source§fn clone(&self) -> ParkReason
fn clone(&self) -> ParkReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more