Skip to content

Commit

Permalink
Document cancellation of update handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Oct 1, 2024
1 parent c0fafa0 commit 2d13fa6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,10 @@ ensure that handler tasks have finished is to wait on the `workflow.all_handlers
```python
await workflow.wait_condition(lambda: workflow.all_handlers_finished())
```

If your main workflow task finishes as a result of cancellation, then any in-progress update handler tasks will be
automatically requested to cancel.

#### External Workflows

* `workflow.get_external_workflow_handle()` inside a workflow returns a handle to interact with another workflow
Expand Down

0 comments on commit 2d13fa6

Please sign in to comment.