Skip to content

fix(cli): remove ResourceExhausted from retriable gRPC codes#3054

Merged
migmartri merged 1 commit into
chainloop-dev:mainfrom
migmartri:fix/cli-retry-remove-resource-exhausted
Apr 17, 2026
Merged

fix(cli): remove ResourceExhausted from retriable gRPC codes#3054
migmartri merged 1 commit into
chainloop-dev:mainfrom
migmartri:fix/cli-retry-remove-resource-exhausted

Conversation

@migmartri

Copy link
Copy Markdown
Member

Summary

Removes codes.ResourceExhausted from the CLI's set of retriable gRPC error codes in app/cli/cmd/errors.go.

ResourceExhausted typically signals rate limiting or quota exhaustion. Blanket-retrying it can waste work against hard quotas that will not self-recover within the retry window, and can amplify load on an already overloaded server. Standard gRPC guidance is to only retry ResourceExhausted when the server explicitly signals it is safe via RetryInfo metadata.

Retries remain for Unavailable, Internal, and DeadlineExceeded.

Closes #3053

ResourceExhausted typically signals rate limiting or quota exhaustion.
Blanket-retrying it can waste work against hard quotas and amplify load
on an overloaded server. gRPC guidance is to only retry when the server
explicitly signals safety via RetryInfo metadata.

Refs chainloop-dev#3053

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

@migmartri migmartri requested a review from a team April 17, 2026 11:42
@migmartri migmartri merged commit 0d3c95b into chainloop-dev:main Apr 17, 2026
15 checks passed
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.

CLI: remove ResourceExhausted from retriable gRPC codes

2 participants