executors.go ×5

Frontier kind: Joint frontier

unlabeled · c_394f673bbfcb

1 test · 3710 LOC · 150 files · introduces 1 test · 17 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges17 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
723 ranges3710 lines · 150 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

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

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

Open complete file

274 var startTime time.Time
275 if callTimeout < e.Config.MinRequestTimeout(ns.Name().String()) {
276 > startTime = time.Now() executors.go
277 > callErr = &operationTimeoutBelowMinError{timeoutType: timeoutType}
278 } else if args.endpointName == commonnexus.SystemEndpoint {
279 startTime = time.Now()
335 if callErr != nil {
336 if failureSource == commonnexus.FailureSourceWorker || errors.As(callErr, new(*operationTimeoutBelowMinError)) {
337 > e.Logger.Debug("Nexus StartOperation request failed", tag.Error(callErr)) executors.go
338 } else {
339 e.Logger.Error("Nexus StartOperation request failed", tag.Error(callErr))
504 emitOperationFailed(e.MetricsHandler, e.metricTagConfig(), op, namespaceName, workflowType, closeTime)
505 }
506 > case enumsspb.NEXUS_OPERATION_STATE_TIMED_OUT: executors.go
507 > timeoutType := enumspb.TIMEOUT_TYPE_UNSPECIFIED
508 > var belowMin *operationTimeoutBelowMinError
509 > if errors.As(callErr, &belowMin) {
510 > timeoutType = belowMin.timeoutType
511 > }
512 > return func() {
513 > emitOperationTimedOut(e.MetricsHandler, e.metricTagConfig(), op, namespaceName, workflowType, timeoutType.String(), closeTime)
514 > }
515 case enumsspb.NEXUS_OPERATION_STATE_STARTED:
516 if op.StartedTime == nil {
557 // operation if the response's operation token is too large.
558 return handleNonRetryableStartOperationError(node, operation, callErr)
559 > case errors.As(callErr, &opTimeoutBelowMinErr): executors.go
560 > // Not enough time to execute another request, resolve the operation with a timeout.
561 > return e.recordOperationTimeout(node, opTimeoutBelowMinErr.timeoutType)
562 case errors.Is(callErr, context.DeadlineExceeded) || errors.Is(callErr, context.Canceled):
563 // If timed out, we don't leak internal info to the user
969 var opTimeoutBelowMinErr *operationTimeoutBelowMinError
970 if errors.As(callErr, &opTimeoutBelowMinErr) {
971 > return "operation-timeout" executors.go
972 > }
973 if errors.Is(callErr, ErrInvalidOperationToken) {
974 return "invalid-operation-token"