Skip to content

[Bug] Signal caused condition to fail with CancelledFailure on 1.14.0 #1866

@justinadkins

Description

@justinadkins

What are you really trying to do?

We bumped our Temporal dependencies to 1.14.0 today from 1.13.1 and upon deploying started seeing workflows fail due to the following error:

CancelledFailure: Workflow cancelled
    at RootCancellationScope.cancel (/tmp/build_d69c691a/node_modules/.pnpm/@temporalio+workflow@1.14.0/node_modules/@temporalio/workflow/src/cancellation-scope.ts:264:16)
    at /tmp/build_d69c691a/node_modules/.pnpm/@temporalio+workflow@1.14.0/node_modules/@temporalio/workflow/src/workflow.ts:1171:36

Rolling back to 1.13.1 resolves the issue. We've reset the effected workflows to the signal event and they now run correctly. A race condition seems to have been introduced since we do observe some of our workflows succeeding with a signal and condition.

Describe the bug

We started seeing phantom CancelledFailure errors surface in our workflows after updating to 1.14.0 that seem to be coming from condition. Nothing else about our code has changed. An example of the code where this appears to be failing:

Image

Minimal Reproduction

Unable to reproduce locally so far. We have over 30 workflows in production that have experienced this.

Environment/Versions

  • OS and processor: Linux
  • Temporal Version: 1.14.0
  • Are you using Docker or Kubernetes or building Temporal from source? From source

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