{"record":{"id":"fe64fe77efad9fec","repo":"temporalio/temporal","slug":"failed-to-load-nexus-operation-cancelation-data","errorCode":null,"errorMessage":"failed to load Nexus operation cancelation data: %w","messagePattern":"failed to load Nexus operation cancelation data: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"service/history/api/describeworkflow/api.go","lineNumber":778,"sourceCode":"\t\tState:                   state,\n\t\tAttempt:                 op.Attempt,\n\t\tLastAttemptCompleteTime: op.LastAttemptCompleteTime,\n\t\tLastAttemptFailure:      op.LastAttemptFailure,\n\t\tNextAttemptScheduleTime: op.NextAttemptScheduleTime,\n\t\tCancellationInfo:        cancellationInfo,\n\t\tBlockedReason:           blockedReason,\n\t}, nil\n}\n\nfunc buildNexusOperationCancellationInfo(\n\tnamespaceID namespace.ID,\n\tnode *hsm.Node,\n\top nexusoperations.Operation,\n\toutboundQueueCBPool *circuitbreakerpool.OutboundQueueCircuitBreakerPool,\n) (*workflowpb.NexusOperationCancellationInfo, error) {\n\tcancelation, err := op.Cancelation(node)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"failed to load Nexus operation cancelation data: %w\", err)\n\t}\n\tif cancelation == nil {\n\t\treturn nil, nil\n\t}\n\n\tstate := cancelation.State()\n\tblockedReason := \"\"\n\tif state == enumspb.NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED {\n\t\tcb := outboundQueueCBPool.Get(tasks.TaskGroupNamespaceIDAndDestination{\n\t\t\tTaskGroup:   nexusoperations.TaskTypeCancelation,\n\t\t\tNamespaceID: namespaceID.String(),\n\t\t\tDestination: op.Endpoint,\n\t\t})\n\t\tif cb.State() != gobreaker.StateClosed {\n\t\t\tstate = enumspb.NEXUS_OPERATION_CANCELLATION_STATE_BLOCKED\n\t\t\tblockedReason = \"The circuit breaker is open.\"\n\t\t}\n\t}","sourceCodeStart":760,"sourceCodeEnd":796,"githubUrl":"https://github.com/temporalio/temporal/blob/bde624efd13fbd3843654058db6d9c716166318b/service/history/api/describeworkflow/api.go#L760-L796","documentation":"Error \"failed to load Nexus operation cancelation data: %w\" thrown in temporalio/temporal.","triggerScenarios":"Thrown at service/history/api/describeworkflow/api.go:778 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"bde624efd13fbd3843654058db6d9c716166318b","analyzedAt":"2026-09-01T07:18:39.080Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}