跳到主要内容
当前查看的是 1.35.x。最新版本为 1.45.x。

Flows and Steps

查看 Markdown

These pages cover Flow and Step behavior in the TypeScript 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 TypeScript SDK API reference.

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.