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

added retrier on api requests #4

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Conversation

isaaguilar
Copy link
Contributor

  • added a time duration threshed before giving up trying to get a successful response from api. Upon reaching the threshold the program will exit to prevent the tf resource on the API (vcluster) from being out of sync with the local resource
  • changed the behavior of handing 2xx responses with an attached message. This is done in conjunction with the API returning 200 code instead of a 4xx code when the tf resource already exists in the database.

fixes #2

- added a time duration threshed before giving up trying to get a successful response from api. Upon reaching the threshold. the program will exit to prevent the tf resouce on the API (vcluster) from being out of sync with the local resource
- changed the behavior of handing 2xx responses with an attached message. This is done in conjunction with the API returning 200 code instead of a 4xx code when the tf resource already exists in the database.
@isaaguilar isaaguilar merged commit 750579d into master Sep 8, 2023
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.

no retry when a single failure to connect to api occurs
1 participant