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

[sitecore-jss] Optimize initial Retry delay time #1733

Merged
merged 8 commits into from
Feb 13, 2024

Conversation

addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Feb 12, 2024

At present, the initial retry delay evaluated to 2 seconds, which becomes relatively high for subsequent retries when assessed in an exponential manner. We aim to initiate the first retry after a 1-second wait instead.

Description / Motivation

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@addy-pathania addy-pathania changed the title {sitecore-jss] Update retry default start delaySeconds {sitecore-jss] Optimize initial Retry delay time Feb 12, 2024
@addy-pathania addy-pathania changed the title {sitecore-jss] Optimize initial Retry delay time [sitecore-jss] Optimize initial Retry delay time Feb 12, 2024
@addy-pathania addy-pathania requested a review from a team February 12, 2024 23:25
Copy link
Contributor

@illiakovalenko illiakovalenko left a comment

Choose a reason for hiding this comment

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

I assume that it should affect some unit tests, did you check? is it covered?

@addy-pathania addy-pathania merged commit fd04482 into dev Feb 13, 2024
1 check passed
@addy-pathania addy-pathania deleted the bugfix/1594-retry-delay-time branch February 13, 2024 20:31
addy-pathania added a commit that referenced this pull request Feb 13, 2024
* update delay time to start from 1ms

* add tests for DefaultRetryStrategy class

* change test description

* update changelog

* update pretierignore

* remove only

* add more unit tests, make defaultStrategy class constructor an object

* add test for default case
addy-pathania added a commit that referenced this pull request Feb 22, 2024
* update delay time to start from 1ms

* add tests for DefaultRetryStrategy class

* change test description

* update changelog

* update pretierignore

* remove only

* add more unit tests, make defaultStrategy class constructor an object

* add test for default case
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.

4 participants