4853
batchID int64,
4854
event *historypb.HistoryEvent,
4856
>
if _, err := ms.UpdateWorkflowStateStatus(
4857
>
enumsspb.WORKFLOW_EXECUTION_STATE_COMPLETED,
4858
>
enumspb.WORKFLOW_EXECUTION_STATUS_COMPLETED,
4859
>
); err != nil {
4860
return err
4861
}
4862
>
ms.executionInfo.CompletionEventBatchId = batchID // Used when completion event needs to be loaded from database
mutable_state_impl.go
4863
>
ms.executionInfo.NewExecutionRunId = event.GetWorkflowExecutionCompletedEventAttributes().GetNewExecutionRunId()
4864
>
ms.executionInfo.CloseTime = event.GetEventTime()
4865
>
ms.ClearStickyTaskQueue()
4866
>
ms.writeEventToCache(event)
4867
>
return ms.processCloseCallbacks()
4868
}
4869