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

rUv8e36e5864d77
diff --git a/v3/@claude-flow/cli/src/services/worker-queue.ts b/v3/@claude-flow/cli/src/services/worker-queue.ts
index 32faadf6d0..577a72d265 100644
--- a/v3/@claude-flow/cli/src/services/worker-queue.ts
+++ b/v3/@claude-flow/cli/src/services/worker-queue.ts
@@ -636,6 +636,7 @@ export class WorkerQueue extends EventEmitter {
* Shutdown the queue gracefully
*/
async shutdown(): Promise<void> {
+ if (this.isShuttingDown) return;
this.isShuttingDown = true;
// Wait for processing tasks to complete (with timeout)
@@ -651,7 +652,11 @@ export class WorkerQueue extends EventEmitter {
await this.fail(taskId, 'Worker shutdown', false);
}
+ // Stop store cleanup
+ this.store.stopCleanup();
+
await this.unregisterWorker();
+ this.initialized = false;
this.emit('shutdown', {});
}