func (r *TaskGeneratorImpl) GenerateDelayedWorkflowTasks(
startEvent *historypb.HistoryEvent,
startVersion := startEvent.GetVersion()
// start time may not be "now" if method called by refresher
startTime := timestamp.TimeValue(startEvent.GetEventTime())
startAttr := startEvent.GetWorkflowExecutionStartedEventAttributes()
workflowTaskBackoffDuration := timestamp.DurationValue(startAttr.GetFirstWorkflowTaskBackoff())
executionTimestamp := startTime.Add(workflowTaskBackoffDuration)
var workflowBackoffType enumsspb.WorkflowBackoffType
switch startAttr.GetInitiator() {
case enumspb.CONTINUE_AS_NEW_INITIATOR_RETRY:
workflowBackoffType = enumsspb.WORKFLOW_BACKOFF_TYPE_RETRY