4946
batchID int64,
4947
event *historypb.HistoryEvent,
4949
>
if _, err := ms.UpdateWorkflowStateStatus(
4950
>
enumsspb.WORKFLOW_EXECUTION_STATE_COMPLETED,
4951
>
enumspb.WORKFLOW_EXECUTION_STATUS_TIMED_OUT,
4952
>
); err != nil {
4953
return err
4954
}
4955
>
ms.executionInfo.CompletionEventBatchId = batchID // Used when completion event needs to be loaded from database
mutable_state_impl.go
4956
>
ms.executionInfo.NewExecutionRunId = event.GetWorkflowExecutionTimedOutEventAttributes().GetNewExecutionRunId()
4957
>
ms.executionInfo.CloseTime = event.GetEventTime()
4958
>
ms.ClearStickyTaskQueue()
4959
>
ms.writeEventToCache(event)
4960
>
4961
>
attrs := event.GetWorkflowExecutionTimedOutEventAttributes()
4962
>
if attrs.RetryState != enumspb.RETRY_STATE_IN_PROGRESS {
4963
return ms.processCloseCallbacks()
4964
}