fix: scheduler next selection parallel disorder (#1028)

* fix: improve scheduler API (suggest_sel) and add timer.remain_time()

* chore: exclude .venv from auto-black and auto-isort tasks

* refactor: wrap RoundRobinScheduler commit and selection in retry loop

* set search_type="ancestors" for experiment_and_feedback_list_after_init

* refactor: merge sync_dag_parent_and_hist and hist.append into one call

* fix uncommited rec bug

* lint

---------

Co-authored-by: xuangu-fang <xuangufang@gmail.com>
This commit is contained in:
you-n-g
2025-07-08 17:23:05 +08:00
committed by GitHub
parent af67910000
commit 12cf0fb459
6 changed files with 40 additions and 43 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ def get_first_session_file_after_duration(log_folder: str | Path, duration: str
session_obj: LoopBase = pickle.load(f)
timer = session_obj.timer
all_duration = timer.all_duration
remain_time_duration = timer.remain_time_duration
remain_time_duration = timer.remain_time()
if all_duration is None or remain_time_duration is None:
msg = "Timer is not configured"
raise ValueError(msg)