Skip to content

Conversation

@you-n-g
Copy link
Contributor

@you-n-g you-n-g commented Jul 7, 2025

…me()

Description

Motivation and Context

How Has This Been Tested?

  • If you are adding a new feature, test on your own test scripts.

Screenshots of Test Results (if appropriate):

  1. Your own tests:

Types of changes

  • Fix bugs
  • Add new feature
  • Update documentation

📚 Documentation preview 📚: https://RDAgent--1028.org.readthedocs.build/en/1028/

@you-n-g you-n-g force-pushed the fix/scheduler_parall branch 2 times, most recently from a96ab1b to ee330f0 Compare July 7, 2025 16:06
@you-n-g you-n-g marked this pull request as ready for review July 7, 2025 16:12
@you-n-g you-n-g changed the title fix: improve scheduler API (suggest_sel) and add timer.remain_ti… fix: scheduler next selection parallel disorder Jul 7, 2025
@you-n-g you-n-g requested a review from xuangu-fang July 7, 2025 16:21
Copy link
Collaborator

@xuangu-fang xuangu-fang Jul 8, 2025

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]:
Copy link
Collaborator

@xuangu-fang xuangu-fang Jul 8, 2025

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

@you-n-g you-n-g force-pushed the fix/scheduler_parall branch from efe2920 to 7a0e1ef Compare July 8, 2025 05:37
@you-n-g you-n-g merged commit f468595 into main Jul 8, 2025
9 checks passed
@you-n-g you-n-g deleted the fix/scheduler_parall branch July 8, 2025 09:23
@you-n-g
Copy link
Contributor Author

you-n-g commented Jul 8, 2025

image

Tested under such setting.

licong01-cloud pushed a commit to licong01-cloud/RD-Agent that referenced this pull request Dec 13, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants