872
}
873
if !isRetryable {
874
>
if e.Config.RecordCancelRequestCompletionEvents() {
executors.go
875
>
n.AddHistoryEvent(enumspb.EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_FAILED, func(e *historypb.HistoryEvent) {
876
>
// nolint:revive // We must mutate here even if the linter doesn't like it.
877
>
e.Attributes = &historypb.HistoryEvent_NexusOperationCancelRequestFailedEventAttributes{
878
>
NexusOperationCancelRequestFailedEventAttributes: &historypb.NexusOperationCancelRequestFailedEventAttributes{
879
>
ScheduledEventId: scheduledEventID,
880
>
RequestedEventId: c.RequestedEventId,
881
>
Failure: failure,
882
>
},
883
>
}
884
>
// nolint:revive // We must mutate here even if the linter doesn't like it.
885
>
e.WorkerMayIgnore = true // For compatibility with older SDKs.
886
>
})
887
}
888
>
return TransitionCancelationFailed.Apply(c, EventCancelationFailed{
executors.go
889
>
Time: env.Now(),
890
>
Failure: failure,
891
>
Node: n,
892
>
})
893
}
894
return TransitionCancelationAttemptFailed.Apply(c, EventCancelationAttemptFailed{