Skip to content

[Bug] Cancelled workflow returns WorkflowExecutionStatus.FAILED status in workflow description #145

@lambyqq

Description

@lambyqq

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions