MCPcopy Create free account
hub / github.com/AI45Lab/Code / has_deadlock

Method has_deadlock

core/src/planning/mod.rs:283–285  ·  view source on GitHub ↗

Detect deadlock: Pending steps remain but none are ready to execute. This happens when all Pending steps have dependencies that are not Completed (e.g., circular deps or all deps Failed/Skipped).

(&self)

Source from the content-addressed store, hash-verified

281 /// This happens when all Pending steps have dependencies that are not
282 /// Completed (e.g., circular deps or all deps Failed/Skipped).
283 pub fn has_deadlock(&self) -> bool {
284 self.pending_count() > 0 && self.get_ready_steps().is_empty()
285 }
286
287 /// Get progress as a fraction (0.0 - 1.0)
288 pub fn progress(&self) -> f32 {

Callers 1

execute_planMethod · 0.80

Calls 3

get_ready_stepsMethod · 0.80
pending_countMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected