103
// surface it as an inconsistency.
104
if !mutableState.IsWorkflowExecutionRunning() && newWorkflow == nil {
106
>
"Applying replication update as zombie (bypass-current) for closed run with no current execution; workflow appears deleted",
107
>
tag.WorkflowNamespaceID(namespaceID.String()),
108
>
tag.WorkflowID(workflowID),
109
>
tag.WorkflowRunID(targetRunID),
110
>
)
111
>
return r.dispatchWorkflowUpdateAsZombie(
112
>
ctx,
113
>
isWorkflowRebuilt,
114
>
nil, // no current workflow: the current run was deleted
115
>
targetWorkflow,
116
>
nil, // no new workflow (guarded above)
117
>
archetypeID,
118
>
)
119
>
}
120
return serviceerror.NewInternal("transactionMgr: unable to locate current workflow during update")
121
}