Learn how to structure workflow execution
.then()
method to chain steps together.
ctx.get_step_result("step-id")
..if_condition()
, .elif_branch()
, and .else_branch()
to create decision logic.
ctx.scope["item"]
to access the current item and ctx.scope["i"]
to get the index (0-based).
options
parameter on Step
.
num_retries
, the backoff defaults to 1000ms.backoff
, retries will not happen unless num_retries > 0
.workflows-py >= 0.1.21
.