// transient/speculative workflow task and will cause in timeout processing to not work for transient workflow tasks.
if m.ms.HasBufferedEvents() {
workflowTaskType = enumsspb.WORKFLOW_TASK_TYPE_NORMAL
createWorkflowTaskScheduledEvent = true
m.ms.updatePendingEventIDs(m.ms.hBuilder.FlushBufferToCurrentBatch())
}
if m.ms.IsTransientWorkflowTask() {
// TODO: ideally this should be the version of the last started workflow task.