Skip to content

Commit

Permalink
Update variable name in workflow code example (#18021)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuos authored Mar 5, 2025
1 parent 1a19e07 commit ea1f987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/module_guides/workflow/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ Workflows have built-in utilities for stepwise execution, allowing you to contro

```python
# Create a workflow, same as usual
w = JokeFlow()
workflow = JokeFlow()
# Get the handler. Passing `stepwise=True` will block execution, waiting for manual intervention
handler = workflow.run(stepwise=True)
# Each time we call `run_step`, the workflow will advance and return the Event
Expand Down Expand Up @@ -525,7 +525,7 @@ w_cptr.checkpoints[handler.run_id]

# to run from one of the checkpoints, use `run_from` method
ckpt = w_cptr.checkpoints[handler.run_id][0]
handler = w_cptr.run_from(topic="Ships")
handler = w_cptr.run_from(topic="Ships", checkpoint=ckpt)
await handler
```

Expand Down

0 comments on commit ea1f987

Please sign in to comment.