-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: scheduler next selection parallel disorder #1028
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a96ab1b to
ee330f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will this change affect other cases which don't use async?
| while True: | ||
| # step 0: Commit the pending selections | ||
| for i in range(self.rec_commit_idx, len(trace.dag_parent)): | ||
| for p in trace.dag_parent[i]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trace.dag_parent[i] is a single-element tuple now, is the for-loop here prepared for multi-pararnt case in future? If so, what if a parant have multi-children, and we will have duplicate operations on it
efe2920 to
7a0e1ef
Compare
* 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 <[email protected]>

…me()
Description
Motivation and Context
How Has This Been Tested?
Screenshots of Test Results (if appropriate):
Types of changes
📚 Documentation preview 📚: https://RDAgent--1028.org.readthedocs.build/en/1028/