transfer_queue_active_task_executor.go ×5

Frontier kind: Code frontier

unlabeled · c_18bc8ec6f9bc

3 tests · 10191 LOC · 267 files · introduces 0 tests · 20 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges20 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2182 ranges10191 lines · 267 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.

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

go.temporal.io/server/service/history/transfer_queue_active_task_executor.go 16 introduced LOC · 5 ranges

Open complete file

1142 }
1143
1144 > t.logger.Debug("Child Execution started successfully", transfer_queue_active_task_executor.go
1145 > tag.WorkflowID(attributes.WorkflowId), tag.WorkflowRunID(childRunID))
1146 >
1147 > // if shouldTerminateAndStartChild is true, it means the child was started after the reset point and we attempted to terminate it before starting a new one.
1148 > // We should update the parent execution info to reflect that the child was potentially terminated and started.
1149 > if shouldTerminateAndStartChild {
1150 childrenInitializedPostResetPoint := executionInfo.ChildrenInitializedPostResetPoint
1151 childrenInitializedPostResetPoint[resetChildID] = &persistencespb.ResetChildInfo{
1156
1157 // Child execution is successfully started, record ChildExecutionStartedEvent in parent execution
1158 > err = t.recordChildExecutionStarted(ctx, task, weContext, attributes, childRunID, childClock) transfer_queue_active_task_executor.go
1159 > if err != nil {
1160 return err
1161 }
1164 // Release the context lock since we no longer need mutable state and
1165 // the rest of logic is making RPC call, which takes time.
1167 > parentClock, err := t.shardContext.NewVectorClock()
1168 > if err != nil {
1169 return err
1170 }
1171 > return t.createFirstWorkflowTask(ctx, targetNamespaceID.String(), &commonpb.WorkflowExecution{ transfer_queue_active_task_executor.go
1172 > WorkflowId: childInfo.StartedWorkflowId,
1173 > RunId: childRunID,
1174 > }, parentClock, childClock)
1175 }
1176
go.temporal.io/server/api/historyservice/v1/request_response.pb.go 4 introduced LOC · 1 range

Open complete file

417 }
418
419 > func (x *StartWorkflowExecutionResponse) GetClock() *v18.VectorClock { request_response.pb.go
420 > if x != nil {
421 > return x.Clock
422 > }
423 return nil
424 }