- Dapr installed
- Redis available at
localhost:6379for the workflow state store
cargo build -p examples --example workflow-taskexecutioniddapr run --app-id workflow-taskexecutionid \
--dapr-grpc-port 50001 \
--log-level debug \
--resources-path ./config \
-- cargo run --example workflow-taskexecutionidThe workflow schedules the RetryN activity twice with a retry policy. Each
invocation is tagged with a unique invocation_id that the workflow includes
in the activity input. Because Dapr replays the same input on every retry of a
given scheduled task, RetryN combines orchestration_id and invocation_id
into a deterministic deduplication key that is stable across retries of one logical
activity call but differs between distinct invocations. The activity fails
until the final retry attempt, then completes successfully — producing two
independent RetryN 1..5 sequences.