server.go ×2

Frontier kind: Code frontier

unlabeled · c_1e4a1a12d218

13 tests · 202 LOC · 4 files · introduces 0 tests · 10 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges10 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
72 ranges202 lines · 4 files · Browse complete extent
All tests (intent)
13 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.

Introduced files, introduced tests, and structurally relevant concept specializationtask_handler_helpers.go ×3 · 11 introduced LOCtask_handler_helpers.go …async_start · 0 introduced LOCasync_startoperation_tasks.go ×1 · 2 introduced LOCoperation_tasks.go ×1invocation_timeout_by_ScheduleToCloseTimeout · 0 introduced LOCinvocation_timeout_by_Sc…operation_tasks.go ×1 · 2 introduced LOCoperation_tasks.go ×1invocation.go ×1 · 7 introduced LOCinvocation.go ×1executors.go ×4 · 9 introduced LOCexecutors.go ×4statemachine.go ×3 · 6 introduced LOCstatemachine.go ×3async_start · 0 introduced LOCasync_startexecutors.go ×1 · 2 introduced LOCexecutors.go ×1invocation_timeout_by_request_timeout, invocation_timeout_by_ScheduleToCloseTimeout · 0 introduced LOCinvocation_timeout_by_re…executors.go ×1 · 7 introduced LOCexecutors.go ×1TestCancel_HandleFromStart · 0 introduced LOCTestCancel_HandleFromSta…TestAsync · 0 introduced LOCTestAsyncclient.go ×7 · 15 introduced LOCclient.go ×7server.go ×3 · 4 introduced LOCserver.go ×3server.go ×5 · 34 introduced LOCserver.go ×5client.go ×1 · 3 introduced LOCclient.go ×1server.go ×3 · 6 introduced LOCserver.go ×3client.go ×4 · 13 introduced LOCclient.go ×4client.go ×8 · 25 introduced LOCclient.go ×8server.go ×8 · 25 introduced LOCserver.go ×8api.go ×2 · 5 introduced LOCapi.go ×2api.go ×1 · 3 introduced LOCapi.go ×1client.go ×1 · 2 introduced LOCclient.go ×1api.go ×2 · 6 introduced LOCapi.go ×2client.go ×7 · 22 introduced LOCclient.go ×7server.go ×1 · 2 introduced LOCserver.go ×1server.go ×1 · 2 introduced LOCserver.go ×1server.go ×1 · 2 introduced LOCserver.go ×1server.go ×5 · 14 introduced LOCserver.go ×5api.go ×2 · 3 introduced LOCapi.go ×2api.go ×3 · 8 introduced LOCapi.go ×3api.go ×1 · 1 introduced LOCapi.go ×1api.go ×2 · 3 introduced LOCapi.go ×2api.go ×1 · 2 introduced LOCapi.go ×1api.go ×1 · 4 introduced LOCapi.go ×1failure_converter.go ×1 · 3 introduced LOCfailure_converter.go ×1TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/chasm/lib/nexusoperation/invocation.go · 295 LOCnexusoperation/invocatio…go.temporal.io/server/chasm/lib/nexusoperation/operation_tasks.go · 413 LOCnexusoperation/operation…go.temporal.io/server/chasm/lib/nexusoperation/task_handler_helpers.go · 380 LOCnexusoperation/task_hand…go.temporal.io/server/common/nexus/nexusrpc/api.go · 295 LOCnexusrpc/api.gogo.temporal.io/server/common/nexus/nexusrpc/client.go · 502 LOCnexusrpc/client.gogo.temporal.io/server/common/nexus/nexusrpc/failure_converter.go · 213 LOCnexusrpc/failure_convert…go.temporal.io/server/common/nexus/nexusrpc/server.go · 404 LOCnexusrpc/server.gogo.temporal.io/server/components/nexusoperations/executors.go · 1250 LOCnexusoperations/executor…go.temporal.io/server/components/nexusoperations/statemachine.go · 682 LOCnexusoperations/statemac…async_start · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/async_startasync_startinvocation_timeout_by_ScheduleToCloseTimeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/invocation_timeout_by_ScheduleToCloseTimeoutinvocation_timeout_by_Sc…invocation_timeout_by_ScheduleToStartTimeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/invocation_timeout_by_ScheduleToStartTimeoutinvocation_timeout_by_Sc…operation_timeout_header_set_by_StartToCloseTimeout · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/operation_timeout_header_set_by_StartToCloseTimeoutoperation_timeout_header…token_too_long · introduced test · go.temporal.io/server/chasm/lib/nexusoperation/TestInvocationTaskHandler_HTTP/token_too_longtoken_too_longTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestAsync · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestAsyncTestAsyncTestCancel_HandleFromStart · introduced test · go.temporal.io/server/common/nexus/nexusrpc/TestCancel_HandleFromStartTestCancel_HandleFromSta…async_start · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/async_startasync_startcancel_before_start · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/cancel_before_startcancel_before_startinvocation_timeout_by_ScheduleToCloseTimeout · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/invocation_timeout_by_ScheduleToCloseTimeoutinvocation_timeout_by_Sc…invocation_timeout_by_request_timeout · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/invocation_timeout_by_request_timeoutinvocation_timeout_by_re…operation_timeout_header_set_by_StartToCloseTimeout · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/operation_timeout_header_set_by_StartToCloseTimeoutoperation_timeout_header…token_to_long · introduced test · go.temporal.io/server/components/nexusoperations/TestProcessInvocationTask/token_to_longtoken_to_longFocused concept · server.go ×2 · 10 introduced LOCserver.go ×2

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: 10 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/nexus/nexusrpc/server.go 10 introduced LOC · 2 ranges

Open complete file

23 case interface{ ValueAsAny() any }:
24 handler.writeResult(writer, request, r.ValueAsAny())
25 > case *nexus.HandlerStartOperationResultAsync: server.go
26 > info := nexus.OperationInfo{
27 > Token: r.OperationToken,
28 > State: nexus.OperationStateRunning,
29 > }
30 > b, err := json.Marshal(info)
31 > if err != nil {
32 handler.Logger.Error("failed to serialize operation info", "error", err)
33 writer.WriteHeader(http.StatusInternalServerError)
35 }
36
37 > writer.Header().Set("Content-Type", contentTypeJSON) server.go
38 > writer.WriteHeader(http.StatusCreated)
39 > if _, err := writer.Write(b); err != nil {
40 handler.Logger.Error("failed to write response body", "error", err)
41 }