Skip to content
This repository was archived by the owner on Jun 10, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/src/step_with_retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from aws_durable_execution_sdk_python.config import StepConfig
from aws_durable_execution_sdk_python.context import (
DurableContext,
StepContext,
durable_step,
)
from aws_durable_execution_sdk_python.execution import durable_execution
Expand All @@ -14,7 +15,7 @@


@durable_step
def unreliable_operation() -> str:
def unreliable_operation(_step_context: StepContext) -> str:
failure_threshold = 0.5
if random() > failure_threshold: # noqa: S311
msg = "Random error occurred"
Expand Down