Skip to content

Retry Bazel Remote API requests#1221

Draft
avdv wants to merge 11 commits intofacebook:mainfrom
avdv:cb/remote-api-retries
Draft

Retry Bazel Remote API requests#1221
avdv wants to merge 11 commits intofacebook:mainfrom
avdv:cb/remote-api-retries

Conversation

@avdv
Copy link
Contributor

@avdv avdv commented Feb 3, 2026

Fixes #1136

Note: based upon #1076

Status: WIP

This change adds retry logic, similar to Bazel, for transient errors. By default, every request is retried at most 5 times, with exponential back-off.

Also, it configures a default timeout of 60 secs for each gRPC request, also notifying the server about it. When testing, this had a really nice effect: a build taking up to 3 hours sometimes (due to waiting on some remote response) now finishes in 10 to 20 mins.

(depends on: #1262)

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 3, 2026
@avdv avdv force-pushed the cb/remote-api-retries branch from 02c004b to 6fc288e Compare March 2, 2026 15:29
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Mar 2, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D92160522. (Because this pull request was imported automatically, there will not be any future comments.)

@avdv avdv force-pushed the cb/remote-api-retries branch from 6fc288e to 4ac5aa8 Compare March 3, 2026 08:51
@avdv avdv force-pushed the cb/remote-api-retries branch from 0d9890c to 47e30e5 Compare March 3, 2026 12:40
josephsumabat added a commit to MercuryTechnologies/buck2 that referenced this pull request Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lack of request retries

2 participants