api.go ×3

Frontier kind: Code frontier

unlabeled · c_1f4d33289a4d

4 tests · 4260 LOC · 192 files · introduces 0 tests · 32 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
3 ranges32 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
641 ranges4260 lines · 192 files · Browse complete extent
All tests (intent)
4 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: 32 introduced LOC across 3 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/api.go 32 introduced LOC · 3 ranges

Open complete file

1026 }
1027
1028 > namespaceName := namespaceEntry.Name() api.go
1029 > workflowID := ms.GetExecutionInfo().WorkflowId
1030 > runID := ms.GetExecutionState().GetRunId()
1031 >
1032 > scope := handler.metricsHandler.WithTags(
1033 > metrics.OperationTag(metrics.HistoryRespondWorkflowTaskCompletedScope),
1034 > metrics.NamespaceTag(namespaceEntry.Name().String()),
1035 > metrics.CommandTypeTag("ConsistentQuery"))
1036 >
1037 > sizeLimitError := handler.config.BlobSizeLimitError(namespaceName.String())
1038 > sizeLimitWarn := handler.config.BlobSizeLimitWarn(namespaceName.String())
1039 >
1040 > // Complete or fail all queries we have results for
1041 > for id, result := range queryResults {
1042 > if err := common.CheckEventBlobSizeLimit(
1043 > result.GetAnswer().Size(),
1044 > sizeLimitWarn,
1045 > sizeLimitError,
1046 > namespaceName.String(),
1047 > workflowID,
1048 > runID,
1049 > scope,
1050 > handler.throttledLogger,
1051 > "ConsistentQuery",
1052 > ); err != nil {
1053 handler.logger.Info("failing query because query result size is too large",
1054 tag.WorkflowNamespace(namespaceName.String()),
1071 metrics.QueryRegistryInvalidStateCount.With(scope).Record(1)
1072 }
1073 > } else { api.go
1074 > succeededCompletionState := &historyi.QueryCompletionState{
1075 > Type: workflow.QueryCompletionTypeSucceeded,
1076 > Result: result,
1077 > }
1078 > if err := queryRegistry.SetCompletionState(id, succeededCompletionState); err != nil {
1079 handler.logger.Error(
1080 "failed to set query completion state to succeeded",
1091 // If no workflow task was created then it means no buffered events came in during this workflow task's handling.
1092 // This means all unanswered buffered queries can be dispatched directly through matching at this point.
1093 > if !createNewWorkflowTask { api.go
1094 buffered := queryRegistry.GetBufferedIDs()
1095 for _, id := range buffered {