executors.go ×5

Frontier kind: Code frontier

unlabeled · c_508c0e844b36

12 tests · 3141 LOC · 137 files · introduces 0 tests · 27 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges27 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
560 ranges3141 lines · 137 files · Browse complete extent
All tests (intent)
12 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 27 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/components/nexusoperations/executors.go 27 introduced LOC · 5 ranges

Open complete file

693 }
694
695 > var endpoint *persistencespb.NexusEndpointEntry executors.go
696 >
697 > // Skip endpoint lookup for system-internal operations.
698 > if args.endpointName != commonnexus.SystemEndpoint {
699 // This happens when we accept the ScheduleNexusOperation command when the endpoint is not found in the registry as
700 // indicated by the EndpointNotFoundAlwaysNonRetryable dynamic config.
832 }
833
834 > args.service = op.Service executors.go
835 > args.operation = op.Operation
836 > args.token = op.OperationToken
837 > args.endpointID = op.EndpointId
838 > args.endpointName = op.Endpoint
839 > args.requestID = op.RequestId
840 > args.scheduledTime = op.ScheduledTime.AsTime()
841 > args.startedTime = op.StartedTime.AsTime()
842 > args.scheduleToCloseTimeout = op.ScheduleToCloseTimeout.AsDuration()
843 > args.startToCloseTimeout = op.StartToCloseTimeout.AsDuration()
844 > args.scheduledEventID, err = hsm.EventIDFromToken(op.ScheduledEventToken)
845 > if err != nil {
846 return err
847 }
848 // Load header from the scheduled event so we can propagate it to CancelOperation.
849 > event, err := n.Parent.LoadHistoryEvent(ctx, op.ScheduledEventToken) executors.go
850 > if err != nil {
851 return err
852 }
853 > if attrs := event.GetNexusOperationScheduledEventAttributes(); attrs != nil { executors.go
854 > args.headers = maps.Clone(attrs.GetNexusHeader())
855 > args.payload = attrs.GetInput()
856 > }
857 > return nil
858 })
859 return
860 }
861
862 > func (e taskExecutor) saveCancelationResult(ctx context.Context, env hsm.Environment, ref hsm.Ref, callErr error, scheduledEventID int64) error { executors.go
863 > return env.Access(ctx, ref, hsm.AccessWrite, func(n *hsm.Node) error {
864 > return hsm.MachineTransition(n, func(c Cancelation) (hsm.TransitionOutput, error) {
865 > if callErr != nil {
866 var handlerErr *nexus.HandlerError
867 var opTimeoutBelowMinErr *operationTimeoutBelowMinError