We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8921ac commit afb374eCopy full SHA for afb374e
1 file changed
examples/src/step_with_retry.py
@@ -4,6 +4,7 @@
4
from aws_durable_execution_sdk_python.config import StepConfig
5
from aws_durable_execution_sdk_python.context import (
6
DurableContext,
7
+ StepContext,
8
durable_step,
9
)
10
from aws_durable_execution_sdk_python.execution import durable_execution
@@ -14,7 +15,7 @@
14
15
16
17
@durable_step
-def unreliable_operation() -> str:
18
+def unreliable_operation(_step_context: StepContext) -> str:
19
failure_threshold = 0.5
20
if random() > failure_threshold: # noqa: S311
21
msg = "Random error occurred"
0 commit comments