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

add errorRetryCount config option #277

Merged
merged 2 commits into from
Feb 24, 2020

Conversation

dominictwlee
Copy link
Contributor

Add errorRetryCount config option to limit error retries.

closes #276

Copy link
Member

@shuding shuding left a comment

Choose a reason for hiding this comment

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

Looks great, thank you! Do you mind also adding it to the readme?

Copy link
Member

@shuding shuding left a comment

Choose a reason for hiding this comment

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

Thank you so much @dominictwlee !

@shuding shuding merged commit 170ad57 into vercel:master Feb 24, 2020
@dominictwlee dominictwlee deleted the error-retry-count branch February 24, 2020 17:41
@@ -43,6 +43,10 @@ function onErrorRetry(
return
}

if (config.errorRetryCount && opts.retryCount > config.errorRetryCount) {
Copy link

@j-xzy j-xzy Jul 8, 2020

Choose a reason for hiding this comment

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

errorRetryCount = 0, nerver return。 @dominictwlee @shuding

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch, I'll make a PR for it later in the day, thanks.

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.

Setting max retryCount on error
3 participants