version_workflow.go ×4

Frontier kind: Joint frontier

unlabeled · c_00163067d45e

24 tests · 3125 LOC · 138 files · introduces 24 tests · 19 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
4 ranges19 lines · 1 files
Tests
24 tests

Contains — complete concept membership

All code (extent)
517 ranges3125 lines · 138 files · Browse complete extent
All tests (intent)
24 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.

24 tests introduced at this concept.

Introduced code

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

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

go.temporal.io/server/service/worker/workerdeployment/version_workflow.go 19 introduced LOC · 4 ranges

Open complete file

1212 d.syncTaskQueuesAsync(ctx, nil, true)
1213 } else {
1214 > if err := d.syncVersionStatusAfterDrainageStatusChange(ctx); err != nil { version_workflow.go
1215 d.logger.Error("failed to sync version status after drainage status change", "error", err)
1216 }
1223 // of the version becomes draining or drained.
1224 // Deprecated.
1225 > func (d *VersionWorkflowRunner) syncVersionStatusAfterDrainageStatusChange(ctx workflow.Context) error { version_workflow.go
1226 > err := d.lock.Lock(ctx)
1227 > if err != nil {
1228 d.logger.Error("Could not acquire workflow lock")
1229 return serviceerror.NewDeadlineExceeded("Could not acquire workflow lock")
1231
1232 // Processing the drainage status change.
1233 > d.asyncPropagationsInProgress++ version_workflow.go
1234 > defer func() {
1235 > d.asyncPropagationsInProgress--
1236 > d.lock.Unlock()
1237 > }()
1238
1239 // TODO: update this to new format once the old format is deleted.
1240 // Build version data with current state
1241 > versionData := &deploymentspb.DeploymentVersionData{ version_workflow.go
1242 > Version: d.VersionState.Version,
1243 > RoutingUpdateTime: d.VersionState.RoutingUpdateTime,
1244 > CurrentSinceTime: d.VersionState.CurrentSinceTime,
1245 > RampingSinceTime: d.VersionState.RampingSinceTime,
1246 > RampPercentage: d.VersionState.RampPercentage,
1247 > Status: d.VersionState.Status,
1248 > }
1249 >
1250 > return d.syncVersionDataToTaskQueues(ctx, versionData)
1251 }
1252