From be8ec9707e905fca9085062cf360df1357f245cc Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Tue, 1 Oct 2024 06:25:38 -0400 Subject: [PATCH] Document cancellation of update handlers --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index a64192a1..db29c72e 100644 --- a/README.md +++ b/README.md @@ -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