// If mutable state was persisted successfully (or persistence was skipped),
// then effects needs to be applied immediately to keep registry and mutable state in sync.
if !ms.IsWorkflowExecutionRunning() {
// NOTE: It is important to call this *after* applying effects to be sure there are no
// Updates in ProvisionallyCompleted state.