workflow.go ×2

Frontier kind: Code frontier

unlabeled · c_84d1d2f1e954

261 tests · 2780 LOC · 132 files · introduces 0 tests · 21 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
2 ranges21 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
410 ranges2780 lines · 132 files · Browse complete extent
All tests (intent)
261 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: 21 introduced LOC across 2 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/worker/workerdeployment/workflow.go 21 introduced LOC · 2 ranges

Open complete file

416
417 // TODO(carlydf): remove verbose logging
418 > d.logger.Info("Continuing workflow as new", workflow.go
419 > "create_time", d.State.GetCreateTime(),
420 > "routing_config", d.State.GetRoutingConfig(),
421 > //nolint:staticcheck // SA1019: worker versioning v0.31
422 > "current_version", d.State.GetRoutingConfig().GetCurrentVersion(),
423 > //nolint:staticcheck // SA1019: worker versioning v0.31
424 > "ramping_version", d.State.GetRoutingConfig().GetRampingVersion(),
425 > "state_changed", d.stateChanged,
426 > "force_can", d.forceCAN,
427 > "workflow_id", workflow.GetInfo(ctx).WorkflowExecution.ID,
428 > "run_id", workflow.GetInfo(ctx).WorkflowExecution.RunID)
429 >
430 > // We perform a continue-as-new after each update and signal is handled to ensure compatibility
431 > // even if the server rolls back to a previous minor version. By continuing-as-new,
432 > // we pass the current state as input to the next workflow execution, resulting in a new
433 > // workflow history with just two initial events. This minimizes the risk of NDE (Non-Deterministic Execution)
434 > // errors during server rollbacks.
435 >
436 > // Apply override state if provided during force-CaN
437 > if d.overrideState != nil {
438 d.State = d.overrideState
439 }
440 > return workflow.NewContinueAsNewError(ctx, WorkerDeploymentWorkflowType, d.WorkerDeploymentWorkflowArgs) workflow.go
441 }
442