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

API engine retry #63

Merged
merged 1 commit into from
Jan 14, 2025
Merged

API engine retry #63

merged 1 commit into from
Jan 14, 2025

Conversation

JoshVanL
Copy link
Collaborator

Adds a engine API retry which will continue to retry an API call if the API currently reports that the API is closed. This is useful for when leadership changes are in progress (typical during boot where leaders are actively being shuffled). The retry will continue to retry an active API call every 300ms when the API reports as closed (because leadership has caused the API to be closed). The retry will continue to cancel calls if the caller has cancelled the context, or if the cron is shutting down.

Adds a engine API retry which will continue to retry an API call if the
API currently reports that the API is closed. This is useful for when
leadership changes are in progress (typical during boot where leaders
are actively being shuffled). The retry will continue to retry an active
API call every 300ms when the API reports as closed (because leadership
has caused the API to be closed). The retry will continue to cancel
calls if the caller has cancelled the context, or if the cron is
shutting down.

Signed-off-by: joshvanl <me@joshvanl.dev>
@yaron2 yaron2 merged commit fc76564 into diagridio:master Jan 14, 2025
1 check 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.

2 participants