Skip to content

Commit d0713c5

Browse files
author
Yue Deng
committed
add verbose
1 parent 9e737f2 commit d0713c5

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

apps/run-agent/llm_solution_selector.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
RETRY_WAIT_MAX = 10 # seconds
3030
MAX_CONCURRENT_REQUESTS = 5 # Maximum concurrent API requests
3131
SEMAPHORE_TIMEOUT = 300 # Timeout for acquiring semaphore in seconds
32+
VERBOSE = False
3233

3334
dotenv.load_dotenv()
3435

@@ -227,16 +228,18 @@ async def process_tasks(
227228

228229
# Show progress indicator
229230
progress_percent = (completed_tasks / total_tasks) * 100
230-
print(
231-
f"Progress: {completed_tasks}/{total_tasks} ({progress_percent:.1f}%) - Completed task: {task_id}"
232-
)
231+
if VERBOSE:
232+
print(
233+
f"Progress: {completed_tasks}/{total_tasks} ({progress_percent:.1f}%) - Completed task: {task_id}"
234+
)
233235

234236
except Exception as e:
235237
completed_tasks += 1
236238
progress_percent = (completed_tasks / total_tasks) * 100
237-
print(
238-
f"Progress: {completed_tasks}/{total_tasks} ({progress_percent:.1f}%) - Error processing task: {e}"
239-
)
239+
if VERBOSE:
240+
print(
241+
f"Progress: {completed_tasks}/{total_tasks} ({progress_percent:.1f}%) - Error processing task: {e}"
242+
)
240243
# Continue with other tasks instead of failing completely
241244
continue
242245

0 commit comments

Comments
 (0)