chasm_engine.go ×4

Frontier kind: Code frontier

unlabeled · c_cd96b5435aee

4 tests · 6484 LOC · 237 files · introduces 0 tests · 34 LOC · 3 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges34 lines · 3 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1274 ranges6484 lines · 237 files · Browse complete extent
All tests (intent)
4 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.

3 files ranked by introduced lines: 34 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/service/history/chasm_engine.go 21 introduced LOC · 4 ranges

Open complete file

553 ref chasm.ComponentRef,
554 request chasm.DeleteExecutionRequest,
555 > ) error { chasm_engine.go
556 > return e.convertError(e.deleteExecution(ctx, ref, request), ref, request.RequestID)
557 > }
558
559 func (e *ChasmEngine) deleteExecution(
561 ref chasm.ComponentRef,
562 request chasm.DeleteExecutionRequest,
563 > ) (retError error) { chasm_engine.go
564 > shardContext, executionLease, err := e.getExecutionLease(ctx, ref)
565 > if err != nil {
566 return err
567 }
568 > defer func() { chasm_engine.go
569 > executionLease.GetReleaseFn()(retError)
570 > }()
571
572 > mutableState := executionLease.GetMutableState() chasm_engine.go
573 > we := mutableState.GetWorkflowKey()
574 >
575 > e.setContextMetadataFromMutableState(ctx, mutableState)
576 >
577 > log.With(shardContext.GetLogger(),
578 > tag.WorkflowNamespaceID(ref.NamespaceID),
579 > tag.WorkflowID(we.WorkflowID),
580 > tag.WorkflowRunID(we.RunID),
581 > ).Info("Deleting CHASM execution")
582 >
583 > if mutableState.IsWorkflowExecutionRunning() {
584 ns, err := shardContext.GetNamespaceRegistry().GetNamespaceByID(namespace.ID(ref.NamespaceID))
585 if err != nil {
go.temporal.io/server/service/history/workflow/task_generator.go 7 introduced LOC · 1 range

Open complete file

365 }
366
367 > func (r *TaskGeneratorImpl) GenerateDeleteExecutionTask() (*tasks.DeleteExecutionTask, error) { task_generator.go
368 > return &tasks.DeleteExecutionTask{
369 > // TaskID, VisibilityTimestamp is set by shard
370 > WorkflowKey: r.mutableState.GetWorkflowKey(),
371 > ArchetypeID: r.mutableState.ChasmTree().ArchetypeID(),
372 > }, nil
373 > }
374
375 func (r *TaskGeneratorImpl) GenerateDelayedWorkflowTasks(
go.temporal.io/server/service/history/tasks/delete_execution_task.go 6 introduced LOC · 2 ranges

Open complete file

31 }
32
33 > func (a *DeleteExecutionTask) SetTaskID(id int64) { delete_execution_task.go
34 > a.TaskID = id
35 > }
36
37 func (a *DeleteExecutionTask) GetVisibilityTime() time.Time {
39 }
40
41 > func (a *DeleteExecutionTask) SetVisibilityTime(timestamp time.Time) { delete_execution_task.go
42 > a.VisibilityTimestamp = timestamp
43 > }
44
45 func (a *DeleteExecutionTask) GetCategory() Category {