Skip to content

Commit

Permalink
feat: retry on execution aborted (timeout = 10s) (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 4, 2024
1 parent f13e3a5 commit 680bdfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eth_retry/eth_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def auto_retry(func: Callable[P, T]) -> Callable[P, T]:
- Max rate limit reached
- please use API Key for higher rate limit
- execution aborted (timeout = 5s)
- execution aborted (timeout = 10s)
- parse error
On repeat errors, will retry in increasing intervals.
Expand Down Expand Up @@ -115,6 +116,7 @@ def should_retry(e: Exception, failures: int) -> bool:
# Occurs on any chain when making computationally intensive calls. Just retry.
# Sometimes works, sometimes doesn't. Worth a shot.
"execution aborted (timeout = 5s)",
"execution aborted (timeout = 10s)",
"max retries exceeded with url",
"temporary failure in name resolution",
"parse error",
Expand Down

0 comments on commit 680bdfa

Please sign in to comment.