From 2b7122f41f36cd8e5a62d0b99725f3ab36500ef2 Mon Sep 17 00:00:00 2001 From: Xu Yang Date: Fri, 18 Apr 2025 02:16:28 -0600 Subject: [PATCH] fix: bug fix in timer start (#807) --- rdagent/utils/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdagent/utils/workflow.py b/rdagent/utils/workflow.py index e221fb83..4bcedaf5 100644 --- a/rdagent/utils/workflow.py +++ b/rdagent/utils/workflow.py @@ -106,7 +106,7 @@ class LoopBase: `None` indicates to run forever until error or KeyboardInterrupt """ - if all_duration is not None and not self.timer: + if all_duration is not None and not self.timer.started: self.timer.reset(all_duration=all_duration) with tqdm(total=len(self.steps), desc="Workflow Progress", unit="step") as pbar: