Skip to content

fix: IsWorkflowExecutionAlreadyStartedError now unwraps WorkflowExecutionAlreadyStarted#2270

Open
gruzovator wants to merge 3 commits intotemporalio:mainfrom
gruzovator:fix/is-workflow-execution-already-started-error
Open

fix: IsWorkflowExecutionAlreadyStartedError now unwraps WorkflowExecutionAlreadyStarted#2270
gruzovator wants to merge 3 commits intotemporalio:mainfrom
gruzovator:fix/is-workflow-execution-already-started-error

Conversation

@gruzovator
Copy link
Copy Markdown

What was changed

Fixed IsWorkflowExecutionAlreadyStartedError to consistently unwrap errors for both
WorkflowExecutionAlreadyStarted and ChildWorkflowExecutionAlreadyStartedError detection.

Why?

The original implementation used a direct type assertion for WorkflowExecutionAlreadyStarted
(no unwrapping) but errors.As for ChildWorkflowExecutionAlreadyStartedError (with unwrapping),
making the behavior inconsistent. If WorkflowExecutionAlreadyStarted is wrapped in another error,
the function would incorrectly return false.

Checklist

  1. Any docs updates needed? No

@gruzovator gruzovator requested a review from a team as a code owner April 4, 2026 16:35
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 4, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants