1013
continue
1014
}
1016
// This is a no-op because the cancel request is already recorded.
1017
continue
1018
}
1020
>
request := &historyservice.RequestCancelWorkflowExecutionRequest{
1021
>
CancelRequest: &workflowservice.RequestCancelWorkflowExecutionRequest{
1022
>
Reason: attr.GetCause(),
1023
>
Identity: attr.GetIdentity(),
1024
>
Links: event.Links,
1025
>
},
1026
>
ExternalInitiatedEventId: attr.GetExternalInitiatedEventId(),
1027
>
ExternalWorkflowExecution: attr.GetExternalWorkflowExecution(),
1028
>
}
1029
>
if _, err := mutableState.AddWorkflowExecutionCancelRequestedEvent(
1030
>
request,
1031
>
); err != nil {
1032
return reappliedEvents, err
1033
}
1035
case enumspb.EVENT_TYPE_WORKFLOW_EXECUTION_OPTIONS_UPDATED:
1036
if isDuplicate(event) {