MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / refreshStatuses

Method refreshStatuses

src/orchestration/scheduler.ts:117–130  ·  view source on GitHub ↗

Promote pending nodes whose deps are committed → ready; block broken ones.

()

Source from the content-addressed store, hash-verified

115
116 /** Promote pending nodes whose deps are committed → ready; block broken ones. */
117 private refreshStatuses() {
118 for (const node of this.graph.nodes.values()) {
119 if (node.status === 'pending') {
120 const broken = this.depsBroken(node);
121 if (broken) {
122 node.status = 'blocked';
123 this.emit({ type: 'node-blocked', id: node.id, cause: broken });
124 } else if (this.depsCommitted(node)) {
125 node.status = 'ready';
126 this.emit({ type: 'node-ready', id: node.id });
127 }
128 }
129 }
130 }
131
132 /** True when no node can make further progress. */
133 private quiescent(): boolean {

Callers 1

runMethod · 0.95

Calls 3

depsBrokenMethod · 0.95
emitMethod · 0.95
depsCommittedMethod · 0.95

Tested by

no test coverage detected