mutable_state_impl.go ×5

Frontier kind: Code frontier

unlabeled · c_a1617a8fb8d2

59 tests · 4138 LOC · 169 files · introduces 0 tests · 16 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges16 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
643 ranges4138 lines · 169 files · Browse complete extent
All tests (intent)
59 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: 16 introduced LOC across 5 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

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

Open complete file

4346 workerControlTaskQueue string,
4347 startedClock *clockspb.VectorClock,
4348 > ) (*historypb.HistoryEvent, error) { mutable_state_impl.go
4349 > opTag := tag.WorkflowActionActivityTaskStarted
4350 > err := ms.checkMutability(opTag)
4351 > if err != nil {
4352 return nil, err
4353 }
4354
4355 > var redirectCounter int64 mutable_state_impl.go
4356 > buildId := worker_versioning.BuildIdIfUsingVersioning(versioningStamp)
4357 > if buildId != "" {
4358 // note that if versioningStamp.BuildId is present we know it's not an old versioning worker because matching
4359 // does not pass build ID for old versioning workers to Record*TaskStart.
4369 }
4370
4371 > if deployment != nil { mutable_state_impl.go
4372 ai.LastWorkerDeploymentVersion = worker_versioning.WorkerDeploymentVersionToStringV31(worker_versioning.DeploymentVersionFromDeployment(deployment))
4373 ai.LastDeploymentVersion = worker_versioning.ExternalWorkerDeploymentVersionFromDeployment(deployment)
4374 }
4375
4376 > ai.WorkerControlTaskQueue = workerControlTaskQueue mutable_state_impl.go
4377 > ai.StartedClock = startedClock
4378 >
4379 > if !ai.HasRetryPolicy {
4380 event := ms.hBuilder.AddActivityTaskStartedEvent(
4381 scheduledEventID,
4445 }
4446
4447 > func (ms *MutableStateImpl) applyActivityBuildIdRedirect(activityInfo *persistencespb.ActivityInfo, buildId string, redirectCounter int64) error { mutable_state_impl.go
4448 > if buildId == "" {
4449 > return nil // not versioned
4450 > }
4451
4452 if useWf := activityInfo.GetUseWorkflowBuildIdInfo(); useWf != nil {