2071
func (ms *MutableStateImpl) writeEventToCache(
2072
event *historypb.HistoryEvent,
2074
>
// For start event: store it here so the recordWorkflowStarted transfer task doesn't need to
2075
>
// load it from database.
2076
>
// For completion event: store it here so we can communicate the result to parent execution
2077
>
// during the processing of DeleteTransferTask without loading this event from database.
2078
>
// For Update events: store it here so that Update disposition lookups can be fast.
2079
>
ms.eventsCache.PutEvent(
2080
>
events.EventKey{
2081
>
NamespaceID: namespace.ID(ms.executionInfo.NamespaceId),
2082
>
WorkflowID: ms.executionInfo.WorkflowId,
2083
>
RunID: ms.executionState.RunId,
2084
>
EventID: event.GetEventId(),
2085
>
Version: event.GetVersion(),
2086
>
},
2087
>
event,
2088
>
)
2089
>
}
2090
2091
func (ms *MutableStateImpl) HasParentExecution() bool {