1008
func timerWorkflowCleanupTaskFromProto(
1009
workflowCleanupTimer *persistencespb.TimerTaskInfo,
1011
>
return &tasks.DeleteHistoryEventTask{
1012
>
WorkflowKey: definition.NewWorkflowKey(
1013
>
workflowCleanupTimer.NamespaceId,
1014
>
workflowCleanupTimer.WorkflowId,
1015
>
workflowCleanupTimer.RunId,
1016
>
),
1017
>
VisibilityTimestamp: workflowCleanupTimer.VisibilityTime.AsTime(),
1018
>
TaskID: workflowCleanupTimer.TaskId,
1019
>
Version: workflowCleanupTimer.Version,
1020
>
BranchToken: workflowCleanupTimer.BranchToken,
1021
>
ArchetypeID: workflowCleanupTimer.GetChasmTaskInfo().GetArchetypeId(),
1022
>
// Delete workflow task process stage is not persisted. It is only for in memory retries.
1023
>
ProcessStage: tasks.DeleteWorkflowExecutionStageNone,
1024
>
}
1025
>
}
1026
1027
func stateMachineTimerTaskFromProto(info *persistencespb.TimerTaskInfo) *tasks.StateMachineTimerTask {