-
Notifications
You must be signed in to change notification settings - Fork 141
Closed
Description
Expected Behavior
When spawning a child workflow that has WorkflowIdConflictPolicy.USE_EXISTING and a workflow ID that is currently running, the running workflow's handle should be returned.
Actual Behavior
{
"type": "workflowExecutionFailedEventAttributes",
"failure": {
"message": "Workflow execution already started",
"source": "TypeScriptSDK",
"stackTrace": "WorkflowExecutionAlreadyStartedError: Workflow execution already started ..."
},
...
}
Steps to Reproduce the Problem
Using typescript-sdk:
import * as wf from '@temporalio/workflow';
- Workflow A runs and starts a child workflow using
wf.startChildwith workflow IDabcandworkflowIdConflictPolicy: WorkflowIdConflictPolicy.USE_EXISTING - Workflow A runs again and uses the same parameters on
wf.startChildfor workflow IDabc - Observe
WorkflowExecutionAlreadyStartedError
Specifications
- Version:
- Temporal server 1.26.2
@temporalio/*1.11.5
- Platform:
Metadata
Metadata
Assignees
Labels
No labels