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

rUvb9f13160d3eb
diff --git a/v3/@claude-flow/cli/src/services/worker-queue.ts b/v3/@claude-flow/cli/src/services/worker-queue.ts
index b5d9790d86..f009c0f050 100644
--- a/v3/@claude-flow/cli/src/services/worker-queue.ts
+++ b/v3/@claude-flow/cli/src/services/worker-queue.ts
@@ -276,6 +276,8 @@ export class WorkerQueue extends EventEmitter {
private heartbeatTimer?: NodeJS.Timeout;
private processingTasks: Set<string> = new Set();
private isShuttingDown = false;
+ private maxConcurrent = 1;
+ private initialized = false;
constructor(config?: Partial<WorkerQueueConfig>) {
super();
@@ -284,6 +286,16 @@ export class WorkerQueue extends EventEmitter {
this.workerId = `worker-${randomUUID().slice(0, 8)}`;
}
+ /**
+ * Initialize the queue (starts cleanup timers)
+ */
+ async initialize(): Promise<void> {
+ if (this.initialized) return;
+ this.store.startCleanup();
+ this.initialized = true;
+ this.emit('initialized', { workerId: this.workerId });
+ }
+
// ============================================
// Public API - Task Management
// ============================================