97
}
98
if currentRunID == "" {
100
>
// deleted, leaving this closed run an orphan. With no new run to create, persist it via the
101
>
// bypass-current path (which tolerates a missing current record). Any other shape (a running
102
>
// run, or a closed run carrying a new run) still needs a current run we don't have, so
103
>
// surface it as an inconsistency.
104
>
if !mutableState.IsWorkflowExecutionRunning() && newWorkflow == nil {
105
r.shardContext.GetThrottledLogger().Warn(
106
"Applying replication update as zombie (bypass-current) for closed run with no current execution; workflow appears deleted",