Skip to content

Commit 68120dc

Browse files
committed
add exponential as default retry policy
1 parent 6d70c58 commit 68120dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "resonate-sdk"
3-
version = "0.2.3"
3+
version = "0.2.4"
44
description = "Distributed Async Await by Resonate HQ, Inc"
55
authors = [
66
{ name = "Resonate HQ, Inc", email = "[email protected]" }

src/resonate/retry_policy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def never() -> Never:
8888

8989

9090
def default_policy() -> RetryPolicy:
91-
return never()
91+
return exponential(base_delay=1, factor=2, max_retries=10)
9292

9393

9494
def calculate_total_possible_delay(policy: Exponential | Linear | Constant) -> float:

0 commit comments

Comments
 (0)