executors.go ×3

Frontier kind: Joint frontier

unlabeled · c_470f16e9b0fb

1 test · 5318 LOC · 221 files · introduces 1 test · 29 LOC · 5 files

Introduces — evidence that enters the hierarchy at this concept

Code
10 ranges29 lines · 5 files
Tests
1 test

Contains — complete concept membership

All code (extent)
878 ranges5318 lines · 221 files · Browse complete extent
All tests (intent)
1 testBrowse 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.

1 test introduced at this concept.

Introduced code

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

5 files ranked by introduced lines: 29 introduced LOC across 10 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/components/dummy/executors.go 15 introduced LOC · 3 ranges

Open complete file

10 registry *hsm.Registry,
11 taskExecutorOptions TaskExecutorOptions,
12 > ) error { executors.go
13 > activeExec := taskExecutor{
14 > TaskExecutorOptions: taskExecutorOptions,
15 > }
16 > if err := hsm.RegisterImmediateExecutor(
17 > registry,
18 > activeExec.executeImmediateTask,
19 > ); err != nil {
20 return err
21 }
22 > return hsm.RegisterTimerExecutor( executors.go
23 > registry,
24 > activeExec.executeTimerTask,
25 > )
26 }
27
50 node *hsm.Node,
51 task TimerTask,
52 > ) error { executors.go
53 > return e.TimerExecutor(env, node, task)
54 > }
go.temporal.io/server/components/dummy/tasks.go 6 introduced LOC · 2 ranges

Open complete file

20 var _ hsm.Task = ImmediateTask{}
21
22 > func (ImmediateTask) Type() string { tasks.go
23 > return TaskTypeImmediate
24 > }
25
26 func (ImmediateTask) Deadline() time.Time {
53 var _ hsm.Task = TimerTask{}
54
55 > func (TimerTask) Type() string { tasks.go
56 > return TaskTypeTimer
57 > }
58
59 func (t TimerTask) Deadline() time.Time {
go.temporal.io/server/service/history/timer_queue_active_task_executor.go 6 introduced LOC · 3 ranges

Open complete file

872 task,
873 func(node *hsm.Node, task hsm.Task) error {
874 > return t.shardContext.StateMachineRegistry().ExecuteTimerTask(t, node, task) timer_queue_active_task_executor.go
875 > },
876 )
877 if err != nil {
880
881 // We haven't done any work, return without committing.
882 > if processedTimers == 0 { timer_queue_active_task_executor.go
883 release(nil) // release(nil) so mutable state is not unloaded from cache
884 return errNoTimerFired
885 }
886
887 > if t.config.EnableUpdateWorkflowModeIgnoreCurrent() { timer_queue_active_task_executor.go
888 > return wfCtx.UpdateWorkflowExecutionAsActive(ctx, t.shardContext)
889 > }
890
891 // TODO: remove following code once EnableUpdateWorkflowModeIgnoreCurrent config is deprecated.
go.temporal.io/server/service/history/queues/metrics.go 1 introduced LOC · 1 range

Open complete file

211 var prefix string
212 if isActive {
213 > prefix = "TimerActive" metrics.go
214 } else {
215 prefix = "TimerStandby"
go.temporal.io/server/service/history/timer_queue_task_executor_base.go 1 introduced LOC · 1 range

Open complete file