-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Exporter] Adding more retries for SCIM API calls (#3807)
## Changes <!-- Summary of your changes that are easy to understand --> There were issue when SCIM API failed to return list of users (because of the incorrect status code or something like that, so Go SDK didn't retry it) and this lead to marking all workspace objects (notebooks/files/...) as ignored because user wasn't found. Also, when the list of users wasn't retrieved, the process didn't stop, and we generated incomplete Terraform code. This PR improves the situation by following: - Adding retries around Users/SPs/Groups SCIM API calls - Exit with the error code when we aren't able to fetch the list of the users or service principals ## Tests <!-- How is this tested? Please see the checklist below and also describe any other relevant tests --> - [x] `make test` run locally - [ ] relevant change in `docs/` folder - [ ] covered with integration tests in `internal/acceptance` - [ ] relevant acceptance tests are passing - [ ] using Go SDK Co-authored-by: Tanmay Rustagi <88379306+tanmay-db@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
106 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters