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

[user model ] - Update RequestService to not retry 400 level errors #1012

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

rgomezp
Copy link
Contributor

@rgomezp rgomezp commented Mar 31, 2023

The ExecutorResult object is used by the base executor to decide whether or not to retry the operation. The object looks like this:

new ExecutorResult<IdentityModel>(success: boolean, retriable: boolean, result?: IdentityModel | undefined)

Here, we're updating the RequestService functions to not retry the operation at all if the status code is 4** level.


This change is Reviewable

@rgomezp rgomezp requested a review from jkasten2 March 31, 2023 22:23
@rgomezp rgomezp changed the title Update RequestService to not retry 400 level errors [user model ] - Update RequestService to not retry 400 level errors Mar 31, 2023
@rgomezp rgomezp merged commit 4f75a17 into user-model/v1 Apr 5, 2023
@rgomezp rgomezp deleted the user-model/handle-errors branch April 5, 2023 19:22
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