mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
checkpoint: File edit:
🚀 Generated with [Claude Code](https://claude.com/claude-code) 📊 V3 Development Progress Checkpoint Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
This commit is contained in:
1 parent
332cf2db7e
commit
cc3e59b3d7
1 file changed
+8
-2
@@ -246,16 +246,22 @@ export class UnifiedSwarmCoordinator extends EventEmitter implements IUnifiedSwa
|
||||
// Stop background processes
|
||||
this.stopBackgroundProcesses();
|
||||
|
||||
// Shutdown components
|
||||
// Shutdown all components including domain pools
|
||||
await Promise.all([
|
||||
this.messageBus.shutdown(),
|
||||
this.consensusEngine.shutdown(),
|
||||
...Array.from(this.agentPools.values()).map(pool => pool.shutdown()),
|
||||
...Array.from(this.domainPools.values()).map(pool => pool.shutdown()),
|
||||
]);
|
||||
|
||||
// Clear agents and tasks
|
||||
// Clear all tracking data
|
||||
this.state.agents.clear();
|
||||
this.state.tasks.clear();
|
||||
this.agentDomainMap.clear();
|
||||
this.taskAssignments.clear();
|
||||
for (const queue of this.domainTaskQueues.values()) {
|
||||
queue.length = 0;
|
||||
}
|
||||
|
||||
this.state.status = 'stopped';
|
||||
|
||||
|
||||
Reference in new issue
Block a user