Skip to content

armgit / ruflo

Public Imported from GitHub
0

🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated

Checkpoint: File edits

rUv5defecb79fab
diff --git a/v3/@claude-flow/cli/src/services/headless-worker-executor.ts b/v3/@claude-flow/cli/src/services/headless-worker-executor.ts
index 31c55acc0c..f2be4276d2 100644
--- a/v3/@claude-flow/cli/src/services/headless-worker-executor.ts
+++ b/v3/@claude-flow/cli/src/services/headless-worker-executor.ts
@@ -755,8 +755,9 @@ export class HeadlessWorkerExecutor extends EventEmitter {
cancelAll(): number {
let cancelled = 0;
- // Cancel active processes
- for (const [executionId, entry] of this.processPool) {
+ // Cancel active processes (convert to array to avoid iterator issues)
+ const entries = Array.from(this.processPool.entries());
+ for (const [executionId, entry] of entries) {
clearTimeout(entry.timeout);
entry.process.kill('SIGTERM');
this.emit('cancelled', { executionId });