workflow_task_completed_handler.go ×5

Frontier kind: Joint frontier

unlabeled · c_2f126222f2c2

1 test · 9958 LOC · 265 files · introduces 1 test · 31 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
8 ranges31 lines · 3 files
Tests
1 test

Contains — complete concept membership

All code (extent)
2152 ranges9958 lines · 265 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.

3 files ranked by introduced lines: 31 introduced LOC across 8 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 23 introduced LOC · 5 ranges

Open complete file

1270 return nil, err
1271 }
1272 > targetNamespaceID = targetNamespaceEntry.ID() workflow_task_completed_handler.go
1273 }
1274
1275 > if err := handler.validateCommandAttr( workflow_task_completed_handler.go
1276 > func() (enumspb.WorkflowTaskFailedCause, error) {
1277 > return handler.attrValidator.ValidateSignalExternalWorkflowExecutionAttributes(
1278 > namespaceID,
1279 > executionInfo.WorkflowId,
1280 > targetNamespaceID,
1281 > attr,
1282 > )
1283 > },
1284 ); err != nil || handler.stopProcessing {
1285 return nil, err
1286 }
1287 > if err := handler.sizeLimitChecker.checkIfNumPendingSignalsExceedsLimit(); err != nil { workflow_task_completed_handler.go
1288 return nil, handler.failWorkflowTask(enumspb.WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED, err)
1289 }
1290
1291 > metricsHandler := handler.metricsHandler.WithTags(metrics.HeaderCallsiteTag("SignalExternalWorkflowExecutionCommand")) workflow_task_completed_handler.go
1292 > metrics.HeaderSize.With(metricsHandler).Record(int64(attr.GetHeader().Size()))
1293 > if err := handler.sizeLimitChecker.checkIfPayloadSizeExceedsLimit(
1294 > metrics.CommandTypeTag(enumspb.COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION.String()),
1295 > attr.GetInput().Size(),
1296 > "SignalExternalWorkflowExecutionCommandAttributes.Input exceeds size limit.",
1297 > ); err != nil {
1298 return nil, handler.terminateWorkflow(enumspb.WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES, err)
1299 }
1300
1301 > signalRequestID := uuid.NewString() // for deduplicate workflow_task_completed_handler.go
1302 > event, _, err := handler.mutableState.AddSignalExternalWorkflowExecutionInitiatedEvent(
1303 > handler.workflowTaskCompletedID, signalRequestID, attr, targetNamespaceID,
1304 > )
1305 > return event, err
1306 }
1307
go.temporal.io/server/service/history/tasks/signal_task.go 6 introduced LOC · 2 ranges

Open complete file

45 }
46
47 > func (u *SignalExecutionTask) SetTaskID(id int64) { signal_task.go
48 > u.TaskID = id
49 > }
50
51 func (u *SignalExecutionTask) GetVisibilityTime() time.Time {
53 }
54
55 > func (u *SignalExecutionTask) SetVisibilityTime(timestamp time.Time) { signal_task.go
56 > u.VisibilityTimestamp = timestamp
57 > }
58
59 func (u *SignalExecutionTask) GetCategory() Category {
go.temporal.io/server/service/history/workflow/mutable_state_impl.go 2 introduced LOC · 1 range

Open complete file

7916 }
7917 for _, signalInfo := range ms.updateSignalInfos {
7918 > signalInfo.LastUpdateVersionedTransition = currentVersionedTransition mutable_state_impl.go
7919 > }
7920
7921 // signalRequestedIDs is a set in DB, we don't have a place to store the lastUpdateVersionedTransition for each