workflow.go ×4

Frontier kind: Code frontier

unlabeled · c_b51128515998

126 tests · 2945 LOC · 133 files · introduces 0 tests · 26 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges26 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
455 ranges2945 lines · 133 files · Browse complete extent
All tests (intent)
126 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: 26 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/worker/workerdeployment/workflow.go 17 introduced LOC · 4 ranges

Open complete file

1536 }
1537
1538 > func (d *WorkflowRunner) syncVersion(ctx workflow.Context, targetVersion string, versionUpdateArgs *deploymentspb.SyncVersionStateUpdateArgs) (*deploymentspb.VersionLocalState, error) { workflow.go
1539 > bld := worker_versioning.ExternalWorkerDeploymentVersionFromStringV31(targetVersion).GetBuildId()
1540 > revisionNumber := versionUpdateArgs.GetRoutingConfig().GetRevisionNumber()
1541 > if revisionNumber > 0 {
1542 // track revision number until propagation finishes
1543 if len(d.State.PropagatingRevisions) == 0 {
1552 }
1553
1554 > var reqID string workflow.go
1555 > if d.hasMinVersion(VersionDataRevisionNumber) && revisionNumber > 0 {
1556 // Don't send repetitive sync requests for the same revision number to the same version.
1557 reqID = fmt.Sprintf("SyncWorkerDeploymentVersion-%d", revisionNumber)
1558 > } else { workflow.go
1559 reqID = d.newUUID(ctx)
1560 }
1561 > activityCtx := workflow.WithActivityOptions(ctx, defaultActivityOptions) workflow.go
1562 > var res deploymentspb.SyncVersionStateActivityResult
1563 > err := workflow.ExecuteActivity(activityCtx, d.a.SyncWorkerDeploymentVersion, &deploymentspb.SyncVersionStateActivityArgs{
1564 > DeploymentName: d.DeploymentName,
1565 > Version: targetVersion,
1566 > UpdateArgs: versionUpdateArgs,
1567 > RequestId: reqID,
1568 > }).Get(ctx, &res)
1569 >
1570 > if err == nil {
1571 if sum := res.GetSummary(); sum != nil {
1572 d.updateVersionSummary(sum)
go.temporal.io/server/api/deployment/v1/message.pb.go 9 introduced LOC · 2 ranges

Open complete file

1296 return ms
1297 }
1298 > return mi.MessageOf(x) message.pb.go
1299 }
1300
3151 func (*SyncVersionStateActivityArgs) ProtoMessage() {}
3152
3153 > func (x *SyncVersionStateActivityArgs) ProtoReflect() protoreflect.Message { message.pb.go
3154 > mi := &file_temporal_server_api_deployment_v1_message_proto_msgTypes[46]
3155 > if x != nil {
3156 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
3157 > if ms.LoadMessageInfo() == nil {
3158 > ms.StoreMessageInfo(mi)
3159 > }
3160 > return ms
3161 }
3162 return mi.MessageOf(x)