Skip to content

Feature request: retry mechanism for model errors #710

@tsaarni

Description

@tsaarni

I am receiving frequent errors from Gemini models

error="workflow execution failed: failed to call model: Error 503, Message: This model is currently experiencing high demand. Spikes in demand are usually temporary. Please try again later., Status: UNAVAILABLE, Details: []"

I understand that the recommended solution is a retry mechanism (link)

To handle these errors, we strongly recommend implementing backoff and retry (our SDKs support this through retry config).

However, the adk-go or go-genai packages do not appear to have built-in support or hooks for this. It would be great to have a configurable request retry mechanism to handle these cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions