Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

run_batch: Make progress bar ETA more reliable

Kilian Lieret1721ef1a1e43
diff --git a/sweagent/run/_progress.py b/sweagent/run/_progress.py
index 7f7d2138..f8f90774 100644
--- a/sweagent/run/_progress.py
+++ b/sweagent/run/_progress.py
@@ -56,7 +56,10 @@ class RunBatchProgressManager:
MofNCompleteColumn(),
TaskProgressColumn(),
TimeElapsedColumn(),
+ TextColumn("[cyan]eta:[/cyan]"),
TimeRemainingColumn(),
+ # Wait 5 min before estimating speed
+ speed_estimate_period=60 * 5,
)
self._task_progress_bar = Progress(
SpinnerColumn(),