155
// into the situation where execution timeout is set but no timeout timer task is generated.
156
157
>
isFirstRun := executionInfo.FirstExecutionRunId == r.mutableState.GetExecutionState().RunId
task_generator.go
158
>
workflowExecutionExpirationTime := timestamp.TimeValue(
159
>
executionInfo.WorkflowExecutionExpirationTime,
160
>
)
161
>
if workflowExecutionTimeoutTimerEnabled &&
162
>
!isFirstRun &&
163
>
!workflowExecutionExpirationTime.IsZero() &&
164
>
executionInfo.WorkflowExecutionTimerTaskStatus == TimerTaskStatusNone {
165
r.mutableState.AddTasks(&tasks.WorkflowExecutionTimeoutTask{
166
// TaskID is set by shard