What are you really trying to do?
Cancel a running workflow and check the status in wf_handle.describe().status
Describe the bug
Expect the status to be WorkflowExecutionStatus.CANCELED, but got WorkflowExecutionStatus.FAILED
Minimal Reproduction
cancel a workflow and get its status
Environment/Versions
- Temporal Version: [e.g. 1.14.0?] and/or SDK version
python-SDK: temporalio==0.1b1
Additional context
I have to use a workaround to tell if workflow is cancelled:
wf_description.status == WorkflowExecutionStatus.FAILED
and isinstance(wf_error.cause, CancelledError)