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: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py

rUv5ad38d72a530
diff --git a/.claude/checkpoints/task-1754480327.json b/.claude/checkpoints/task-1754480327.json
new file mode 100644
index 0000000000..c1770753e2
--- /dev/null
+++ b/.claude/checkpoints/task-1754480327.json
@@ -0,0 +1 @@
+{"checkpoint": "task-20250806-113846", "task": "@ruvnet ➜ /workspaces/claude-code-flow (alpha-88) $ swarm-benchmark real swarm "Build REST API" --", "timestamp": "2025-08-06T11:38:47Z", "commit": "426acf13fbe6bb5f835e295920952f2eaf542f44", "github_release": "true"}
diff --git a/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py b/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py
index 203bd14d9b..6a9e140c2a 100644
--- a/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py
+++ b/benchmark/src/swarm_benchmark/core/real_benchmark_engine.py
@@ -271,4 +271,22 @@ class RealBenchmarkEngine(BenchmarkEngine):
# Stop metrics collection
self.metrics_aggregator.stop_collection()
- return results
\ No newline at end of file
+ return results
+
+ def cleanup(self):
+ """Clean up resources used by the benchmark engine."""
+ try:
+ # Stop metrics collection if still running
+ if hasattr(self, 'metrics_aggregator'):
+ self.metrics_aggregator.stop_collection()
+
+ # Clean up any process trackers
+ if hasattr(self, 'process_tracker'):
+ self.process_tracker.cleanup()
+
+ # Any other cleanup needed
+ pass
+ except Exception as e:
+ # Log but don't raise - cleanup should be safe
+ import logging
+ logging.warning(f"Error during cleanup: {e}")
\ No newline at end of file