447
}
448
450
>
// TaskID, VisibilityTimestamp is set by shard
451
>
WorkflowKey: r.mutableState.GetWorkflowKey(),
452
>
// Store current task queue to the transfer task.
453
>
// If current task queue becomes sticky in between when this transfer task is created and processed,
454
>
// it can't be used at process time, because timeout timer was not created for it,
455
>
// because it used to be non-sticky when this transfer task was created here.
456
>
// In short, task queue that was "current" when transfer task was created must be used when task is processed.
457
>
TaskQueue: workflowTask.TaskQueue.GetName(),
458
>
ScheduledEventID: workflowTask.ScheduledEventID,
459
>
Version: workflowTask.Version,
460
>
Stamp: workflowTask.Stamp,
461
>
})
462
>
463
>
return nil
464
}
465