workflow_handler.go ×6

Frontier kind: Joint frontier

unlabeled · c_b99aece2d441

3 tests · 3959 LOC · 200 files · introduces 2 tests · 32 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges32 lines · 1 files
Tests
2 tests

Contains — complete concept membership

All code (extent)
602 ranges3959 lines · 200 files · Browse complete extent
All tests (intent)
3 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.

2 tests introduced at this concept.

Introduced code

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

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

go.temporal.io/server/service/frontend/workflow_handler.go 32 introduced LOC · 6 ranges

Open complete file

4808 }
4809
4810 > sizeLimitError := wh.config.BlobSizeLimitError(request.GetNamespace()) workflow_handler.go
4811 > sizeLimitWarn := wh.config.BlobSizeLimitWarn(request.GetNamespace())
4812 > if err := common.CheckEventBlobSizeLimit(
4813 > inputPayloads.Size(),
4814 > sizeLimitWarn,
4815 > sizeLimitError,
4816 > namespaceID.String(),
4817 > workflowID,
4818 > "", // don't have runid yet
4819 > wh.metricsScope(ctx).WithTags(metrics.CommandTypeTag(enumspb.COMMAND_TYPE_UNSPECIFIED.String())),
4820 > wh.throttledLogger,
4821 > "PatchSchedule",
4822 > ); err != nil {
4823 return nil, err
4824 }
4825
4826 > if wh.chasmSchedulerEnabled(ctx, request.Namespace) { workflow_handler.go
4827 res, err := wh.patchScheduleCHASM(ctx, request)
4828 if err == nil {
4834 }
4835
4836 > return wh.patchScheduleWorkflow(ctx, request, inputPayloads) workflow_handler.go
4837 }
4838
4841 request *workflowservice.PatchScheduleRequest,
4842 inputPayloads *commonpb.Payloads,
4843 > ) (_ *workflowservice.PatchScheduleResponse, retError error) { workflow_handler.go
4844 > workflowID := scheduler.WorkflowIDPrefix + request.ScheduleId
4845 > namespaceID, err := wh.namespaceRegistry.GetNamespaceID(namespace.Name(request.GetNamespace()))
4846 > if err != nil {
4847 return nil, err
4848 }
4849
4850 > _, err = wh.historyClient.SignalWorkflowExecution(ctx, &historyservice.SignalWorkflowExecutionRequest{ workflow_handler.go
4851 > NamespaceId: namespaceID.String(),
4852 > SignalRequest: &workflowservice.SignalWorkflowExecutionRequest{
4853 > Namespace: request.Namespace,
4854 > WorkflowExecution: &commonpb.WorkflowExecution{WorkflowId: workflowID},
4855 > SignalName: scheduler.SignalNamePatch,
4856 > Input: inputPayloads,
4857 > Identity: request.Identity,
4858 > RequestId: request.RequestId,
4859 > },
4860 > })
4861 > if err != nil {
4862 return nil, err
4863 }
4864
4865 > return &workflowservice.PatchScheduleResponse{}, nil workflow_handler.go
4866 }
4867