74
75
switch opErr.State { // nolint:exhaustive
77
>
event := node.AddHistoryEvent(enumspb.EVENT_TYPE_NEXUS_OPERATION_FAILED, func(e *historypb.HistoryEvent) {
78
>
// We must assign to this property, linter doesn't like this.
79
>
// nolint:revive
80
>
e.Attributes = &historypb.HistoryEvent_NexusOperationFailedEventAttributes{
81
>
NexusOperationFailedEventAttributes: &historypb.NexusOperationFailedEventAttributes{
82
>
Failure: createNexusOperationFailure(operation, eventID, originalCause),
83
>
ScheduledEventId: eventID,
84
>
RequestId: operation.RequestId,
85
>
},
86
>
}
87
>
})
88
89
>
return FailedEventDefinition{}.Apply(node.Parent, event)
completion.go
90
case nexus.OperationStateCanceled:
91
if originalCause.GetCanceledFailureInfo() == nil {