Flows and Steps
View as MarkdownThese pages cover Flow and Step behavior in the Python SDK: start options, Flow configuration, waits, Step decisions, Step options, and what happens when an attempt fails or is interrupted. For the concepts, read Flow and Step first. For the exact signature of one API, read the Python SDK API reference.
- Flow definition
- StartFlowOptions
- FlowConfig
- Step methods and commits
- Waits
- Step decisions
- StepOptions
- Failure and redelivery
Version notes
Since 1.35: this SDK requires Server protocol 4, available from server-zd 0.1.17. The runtime changes are:
- A Step attempt deadline is the hand-out time plus the method timeout. It is no longer shortened to the remaining retry budget. Queue and lock waits are excluded.
- An interrupted attempt that was handed out consumes a retry.
- TotalDuration never ends a running attempt. The server no longer produces the RETRY_DEADLINE failure kind. The SDK helper IsRetryTotalDurationExceeded, and its equivalent in other SDKs, can be true only for records written before the upgrade.