Skip to content

feat: auto failover APIs with LK Cloud#733

Open
davidzhao wants to merge 1 commit into
mainfrom
dz/api-failover
Open

feat: auto failover APIs with LK Cloud#733
davidzhao wants to merge 1 commit into
mainfrom
dz/api-failover

Conversation

@davidzhao

Copy link
Copy Markdown
Member

retries in alternative datacenters on 5xx and transport failures

retries in alternative datacenters on 5xx and transport failures

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

host: str,
pkg: str,
prefix: str = DEFAULT_PREFIX,
failover: Optional[FailoverConfig] = None,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: FailoverOptions for consistency with agents

@theomonnom

Copy link
Copy Markdown
Member

Should we fail fast with a shorter timeout?

error_data = {}
if resp.status < 500:
# 4xx is terminal.
raise self._twirp_error(error_data, resp.status)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we log a warning on retry?

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