forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FTR] migrate p-retry usage to Retry service (elastic#206088)
## Summary Use the [tryWithRetries](https://github.com/elastic/kibana/blob/37d7a5efb760dc271a4fb26f1eeba0d66e037b07/packages/kbn-ftr-common-functional-services/services/retry/retry.ts#L105) service method instead of `pRetry` as detailed [here](elastic#178535) `tryWithRetries` offers granular control of `retryCount`, `retryDelay`, and `timeout`. > [!IMPORTANT] In some cases, there are helper functions that do not have access to the FTR's provider context. So, instead of using `retry.tryWithRetries`, we are using `retryForSuccess` instead. `retryForSuccess` is the function that `tryWithRetries` uses "_under the hood_". As long as we use the `retryCount` argument, we will get the retry logging, as per [this related pr](elastic#205894) Related: elastic#178535, elastic#205894 --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
- Loading branch information
1 parent
5e8d2b5
commit 9a439b7
Showing
13 changed files
with
158 additions
and
111 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
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
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
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
Oops, something went wrong.