We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c435184 commit 1e24b0fCopy full SHA for 1e24b0f
src/sagemaker/workflow/retry.py
@@ -19,6 +19,9 @@
19
20
from sagemaker.workflow.entities import Entity, DefaultEnumMeta, RequestType
21
22
+
23
+DEFAULT_BACKOFF_RATE = 2.0
24
+DEFAULT_INTERVAL_SECONDS = 1
25
MAX_ATTEMPTS_CAP = 20
26
MAX_EXPIRE_AFTER_MIN = 14400
27
@@ -53,8 +56,8 @@ class RetryPolicy(Entity):
53
56
to expire any further retry attempt (default: None)
54
57
"""
55
58
- backoff_rate: float = attr.ib(default=2.0)
- interval_seconds: int = attr.ib(default=1.0)
59
+ backoff_rate: float = attr.ib(default=DEFAULT_BACKOFF_RATE)
60
+ interval_seconds: int = attr.ib(default=DEFAULT_INTERVAL_SECONDS)
61
max_attempts: int = attr.ib(default=None)
62
expire_after_mins: int = attr.ib(default=None)
63
0 commit comments