temporalio / sdk-go

Temporal Go SDK
https://docs.temporal.io/application-development?lang=go
MIT License
481 stars 197 forks source link

TERMINATE_IF_RUNNING doesn't work for duplicate child workflows #1536

Open mfateev opened 4 days ago

mfateev commented 4 days ago

Expected Behavior

A child workflow with IdReusePolicy set to TERMINATE_IF_RUNNING is started twice from the same parent. Both starts are expected to succeed.

Actual Behavior

Workflow receives ChildWorkflowExecutionAlreadyStartedError.

Steps to Reproduce the Problem

Reproduction: https://github.com/temporalio/samples-go/pull/356