693
// will be recorded in the history, but no further action will be taken.
694
if ai.StartedEventId == common.EmptyEventID {
696
>
// schedule a workflow task to ensure the workflow makes progress.
697
>
_, err = handler.mutableState.AddActivityTaskCanceledEvent(
698
>
ai.ScheduledEventId,
699
>
ai.StartedEventId,
700
>
actCancelReqEvent.GetEventId(),
701
>
payloads.EncodeString(activityCancellationMsgActivityNotStarted),
702
>
handler.identity,
703
>
)
704
>
if err != nil {
705
return nil, err
706
}
708
} else if ai.WorkerControlTaskQueue != "" {
709
if ai.StartedClock == nil {