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

Slow down retries so we keep retrying for more than 10 seconds. #696

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

chronos-tachyon
Copy link
Contributor

What was changed

  • Increase backoff factor to 1.7 (from 1.5) for non-poll RPCs

Why?

The current backoff factor causes clients using the Core SDK to exhaust their retries within 6.011 to 8.966 seconds, depending on random jitter. We want to ensure that all clients keep retrying for at least 10 seconds. With the new backoff factor, retries will not be exhausted until 11.878 to 17.767 seconds after the initial failure.

This advances progress on temporalio/features#27 (aka SDK-118 in internal Jira).

@chronos-tachyon chronos-tachyon requested a review from a team as a code owner February 27, 2024 18:26
Copy link
Member

@Sushisource Sushisource left a comment

Choose a reason for hiding this comment

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

Thanks!

@chronos-tachyon chronos-tachyon merged commit 89816bf into master Feb 27, 2024
7 checks passed
@chronos-tachyon chronos-tachyon deleted the dking/SDK-118 branch February 27, 2024 19:00
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