mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 06:06:02 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/cli/main.py
This commit is contained in:
1 parent
8b6fe4dc26
commit
c17df119c7
2 files changed
+14
-2
No files matched your search
@@ -0,0 +1 @@
|
||||
{"checkpoint": "task-20250806-114415", "task": "@ruvnet ➜ /workspaces/claude-code-flow (alpha-88) $ swarm-benchmark real hive-mind "Design hello w", "timestamp": "2025-08-06T11:44:16Z", "commit": "1d35eb9a66a90b27540b5e7faf17eb6688921c8a", "github_release": "true"}
|
||||
@@ -380,9 +380,20 @@ def hive_mind(ctx, task, queen_type, max_workers, consensus, timeout, monitor, o
|
||||
click.echo(f"📊 Results saved to: {output_dir}")
|
||||
if ctx.obj.get('verbose'):
|
||||
click.echo(f"Execution time: {result.duration:.2f}s")
|
||||
click.echo(f"Workers spawned: {result.metrics.get('workers_spawned', 'N/A')}")
|
||||
click.echo(f"Workers spawned: {result.agents_spawned}")
|
||||
else:
|
||||
click.echo(f"❌ Hive-mind benchmark failed: {result.error}")
|
||||
error_msg = ""
|
||||
if result.errors:
|
||||
error_msg = "; ".join(result.errors)
|
||||
elif result.exit_code == -9:
|
||||
error_msg = f"Command timed out or was killed (exit code: {result.exit_code})"
|
||||
elif result.exit_code != 0:
|
||||
error_msg = f"Command failed with exit code: {result.exit_code}"
|
||||
else:
|
||||
error_msg = "Unknown error"
|
||||
click.echo(f"❌ Hive-mind benchmark failed: {error_msg}")
|
||||
if ctx.obj.get('verbose') and result.stderr_lines:
|
||||
click.echo(f"Stderr: {' '.join(result.stderr_lines[:5])}")
|
||||
return 1
|
||||
|
||||
except Exception as e:
|
||||
|
||||
Reference in new issue
Block a user