🔖 Checkpoint: Edit /workspaces/claude-code-flow/benchmark/src/swarm_benchmark/core/claude_flow_real_executor.py

This commit is contained in:
rUv committed 2025-08-06 12:53:55 +00:00
1 parent 33035c29d2
commit 30cea40e63
2 files changed
+9 -6

No files matched your search

+1
View File
@@ -0,0 +1 @@
{"checkpoint": "task-20250806-125339", "task": "the time out should be really long, some of the benchmarks could run for many hours. ", "timestamp": "2025-08-06T12:53:40Z", "commit": "33035c29d2712656154b74a1aff76bd4aa26bbab", "github_release": "true"}
@@ -304,8 +304,8 @@ class RealClaudeFlowExecutor:
if config.additional_flags:
command.extend(config.additional_flags)
# Set a reasonable timeout (5 minutes)
timeout = min(config.timeout * 60, 300)
# Use the configured timeout (can be hours)
timeout = config.timeout * 60 # Convert minutes to seconds
return self._execute_streaming_command(command, timeout)
@@ -344,8 +344,9 @@ class RealClaudeFlowExecutor:
if config.additional_flags:
command.extend(config.additional_flags)
# Use appropriate timeout
return self._execute_streaming_command(command, 300) # 5 minute timeout
# Use a long timeout for benchmarks (default 6 hours)
timeout = 6 * 60 * 60 # 6 hours in seconds
return self._execute_streaming_command(command, timeout)
def execute_sparc(self, config: SparcCommand) -> RealExecutionResult:
"""Execute a real SPARC command."""
@@ -373,8 +374,9 @@ class RealClaudeFlowExecutor:
if config.additional_flags:
command.extend(config.additional_flags)
# Execute with appropriate timeout
return self._execute_streaming_command(command, 300) # 5 minutes for SPARC
# Use a long timeout for SPARC benchmarks (default 2 hours)
timeout = 2 * 60 * 60 # 2 hours in seconds
return self._execute_streaming_command(command, timeout)
def _execute_streaming_command(self, command: List[str], timeout_seconds: int) -> RealExecutionResult:
"""Execute command and parse streaming output."""