Hi Temporal Community,
I’m encountering an issue where a child workflow gets stuck at the StartChildWorkflowExecutionInitiated
event when I try to reinitiate it with the same workflow ID after it has been canceled. Here are the details of my setup:
- Parent Workflow:
- Initiates the child workflow with a specific workflow ID.
- Cancels the child workflow under certain conditions.
- Child Workflow:
- Uses
WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING
to handle workflow ID reuse. - Has proper cancellation handling using
workflow.WithCancel
. - Logs and responds to cancellation signals correctly.
- Issue:
- After canceling the child workflow, attempting to reinitiate it with the same workflow ID results in the workflow being stuck at the
StartChildWorkflowExecutionInitiated
event. - The new child workflow does not start execution.
first child workflow initiation and second child workflow initiation is using the same function
any idea what could be the cause ?
Thanks