Skip to content

Conversation

@keyonghan
Copy link
Contributor

As we are implementing support for branching, reserve-task API reserves tasks for the default master branch only before this PR.

This PR fixes that by reserving tasks regardless of branches. It will reserve tasks for latest commits first, no matter what branch it is.

In the future, we may need to adjust priority to run tasks for different branches.


Future<FullTask> findNextTask(Agent agent) async {
await for (Commit commit in datastore.queryRecentCommits()) {
await for (Commit commit in datastore.queryRecentCommitsNoBranch()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forget uploading the file with this method? or was already there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank!

@keyonghan keyonghan merged commit a62f305 into flutter:master Mar 19, 2020
@keyonghan keyonghan deleted the reserve_task_branch branch March 13, 2024 20:16
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.

2 participants