pub struct WorkerSelectionDiagnostic {Show 17 fields
pub worker_id: WorkerId,
pub status: String,
pub circuit_state: String,
pub pressure_state: String,
pub pressure_reason_code: String,
pub success_rate: Option<f64>,
pub min_success_rate: f64,
pub fallback_min_success_rate: f64,
pub required_runtime: RequiredRuntime,
pub runtime_available: bool,
pub available_slots: u32,
pub total_slots: u32,
pub estimated_cores: u32,
pub active_project_excluded: bool,
pub final_decision: WorkerSelectionDiagnosticDecision,
pub final_reason: String,
pub reason_codes: Vec<String>,
}Expand description
Per-worker selector facts captured at worker-selection time.
Fields§
§worker_id: WorkerIdWorker ID.
status: StringWorker lifecycle/status label.
circuit_state: StringCircuit breaker state label.
pressure_state: StringCurrent normalized pressure state.
pressure_reason_code: StringStable pressure reason code.
success_rate: Option<f64>Rolling selector success rate, where available.
min_success_rate: f64Normal selection success-rate threshold.
fallback_min_success_rate: f64Last-success fallback success-rate threshold.
required_runtime: RequiredRuntimeRequired runtime for this command.
runtime_available: boolWhether this worker has the required runtime.
available_slots: u32Available slots at selection time.
total_slots: u32Total configured slots.
estimated_cores: u32Estimated slots requested by this command.
active_project_excluded: boolWhether this worker was excluded because it already runs this project.
final_decision: WorkerSelectionDiagnosticDecisionFinal per-worker selector decision.
final_reason: StringHuman-readable final reason.
reason_codes: Vec<String>Stable machine-readable reasons collected for this worker.
Trait Implementations§
Source§impl Clone for WorkerSelectionDiagnostic
impl Clone for WorkerSelectionDiagnostic
Source§impl Debug for WorkerSelectionDiagnostic
impl Debug for WorkerSelectionDiagnostic
Source§impl<'de> Deserialize<'de> for WorkerSelectionDiagnostic
impl<'de> Deserialize<'de> for WorkerSelectionDiagnostic
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for WorkerSelectionDiagnostic
impl JsonSchema for WorkerSelectionDiagnostic
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for WorkerSelectionDiagnostic
Auto Trait Implementations§
impl Freeze for WorkerSelectionDiagnostic
impl RefUnwindSafe for WorkerSelectionDiagnostic
impl Send for WorkerSelectionDiagnostic
impl Sync for WorkerSelectionDiagnostic
impl Unpin for WorkerSelectionDiagnostic
impl UnsafeUnpin for WorkerSelectionDiagnostic
impl UnwindSafe for WorkerSelectionDiagnostic
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more