workflow_task_completed_handler.go ×4

Frontier kind: Code frontier

unlabeled · c_5c5772209b7c

14 tests · 3275 LOC · 145 files · introduces 0 tests · 12 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges12 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
456 ranges3275 lines · 145 files · Browse complete extent
All tests (intent)
14 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.

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

go.temporal.io/server/service/history/api/respondworkflowtaskcompleted/workflow_task_completed_handler.go 11 introduced LOC · 4 ranges

Open complete file

804 }
805
806 > if err := handler.sizeLimitChecker.checkIfPayloadSizeExceedsLimit( workflow_task_completed_handler.go
807 > metrics.CommandTypeTag(enumspb.COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION.String()),
808 > attr.GetResult().Size(),
809 > "CompleteWorkflowExecutionCommandAttributes.Result exceeds size limit.",
810 > ); err != nil {
811 return nil, handler.terminateWorkflow(enumspb.WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES, err)
812 }
813
814 // If the workflow task has more than one completion event then just pick the first one
815 > if !handler.mutableState.IsWorkflowExecutionRunning() { workflow_task_completed_handler.go
816 metrics.MultipleCompletionCommandsCounter.With(handler.metricsHandler).Record(1)
817 handler.logger.Warn(
823 }
824
825 > cronBackoff := handler.mutableState.GetCronBackoffDuration() workflow_task_completed_handler.go
826 > var newExecutionRunID string
827 > if cronBackoff != backoff.NoBackoff {
828 newExecutionRunID = uuid.NewString()
829 }
830
831 // Always add workflow completed event to this one
832 > event, err := handler.mutableState.AddCompletedWorkflowEvent(handler.workflowTaskCompletedID, attr, newExecutionRunID) workflow_task_completed_handler.go
833 > if err != nil {
834 return nil, err
835 }
go.temporal.io/server/service/history/api/command_attr_validator.go 1 introduced LOC · 1 range

Open complete file

225 return failedCause, serviceerror.NewInvalidArgument("CompleteWorkflowExecutionCommandAttributes is not set on CompleteWorkflowExecutionCommand.")
226 }
227 > return enumspb.WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED, nil command_attr_validator.go
228 }
229