forked from finos/symphony-bdk-python
-
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.
It looks like the existing logic to retry on timeouts or client errors was not working as expected. For instance the DF loop would exit on timeouts. The aiohttp client can raise different errors (https://docs.aiohttp.org/en/stable/client_reference.html#client-exceptions) and also asyncio.TimeoutError. I tried locally by misconfiguring the hostname (it cannot be resolved) and the port (triggers a timeout). However this means that retries will be performed upon startup even if the hostname cannot be resolved for instance. Which is not 100% like the Java BDK who has a different logic for authentication and datafeed retries. The problem is how sessions are refreshed, here lazily so we have two nested @Retry calls making it difficult to have different strategies. Fixes finos#256
- Loading branch information
1 parent
5ad3d02
commit 5112b21
Showing
2 changed files
with
11 additions
and
8 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