Skip to content
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

Return all tasks for a commit when querying recent tasks #1971

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

keyonghan
Copy link
Contributor

@keyonghan keyonghan commented Jul 12, 2022

Fixes: flutter/flutter#100793

The function queryRecentTasks is being used by both refresh_chromebot_status and batch_backfiller APIs. It has caused batch_backfiller not working appropriately. Strangely lucky that refresh_chromebot_status is working. I wonder if this is achieved by multiple retries. Hopefully this will also help status refresh faster.

Copy link
Contributor

@CaseyHillers CaseyHillers left a comment

Choose a reason for hiding this comment

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

flutter-lgtm

String? branch,
required RepositorySlug slug,
}) async* {
await for (Commit commit in queryRecentCommits(limit: commitLimit, branch: branch, slug: slug)) {
final Query<Task> query = db.query<Task>(ancestorKey: commit.key)
..limit(taskLimit)
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL we've had this for 3 years, and I don't think anything used it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

refresh_chromebot_status is using it as well.

@keyonghan keyonghan added the autosubmit Merge PR when tree becomes green via auto submit App. label Jul 12, 2022
@auto-submit auto-submit bot merged commit 2533f8a into flutter:main Jul 12, 2022
@keyonghan keyonghan deleted the backfilling_fix branch March 13, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App.
Projects
None yet
2 participants