902
// The operation is not yet canceled and may ignore our request, the outcome will be known via the
903
// completion callback.
904
>
if e.Config.RecordCancelRequestCompletionEvents() {
executors.go
905
>
n.AddHistoryEvent(enumspb.EVENT_TYPE_NEXUS_OPERATION_CANCEL_REQUEST_COMPLETED, func(e *historypb.HistoryEvent) {
906
>
// nolint:revive // We must mutate here even if the linter doesn't like it.
907
>
e.Attributes = &historypb.HistoryEvent_NexusOperationCancelRequestCompletedEventAttributes{
908
>
NexusOperationCancelRequestCompletedEventAttributes: &historypb.NexusOperationCancelRequestCompletedEventAttributes{
909
>
ScheduledEventId: scheduledEventID,
910
>
RequestedEventId: c.RequestedEventId,
911
>
},
912
>
}
913
>
// nolint:revive // We must mutate here even if the linter doesn't like it.
914
>
e.WorkerMayIgnore = true // For compatibility with older SDKs.
915
>
})
916
}
917
>
return TransitionCancelationSucceeded.Apply(c, EventCancelationSucceeded{
executors.go
918
>
Time: env.Now(),
919
>
Node: n,
920
>
})
921
})
922
})