scheduler.go ×6

Frontier kind: Code frontier

unlabeled · c_f090b172353a

165 tests · 3747 LOC · 150 files · introduces 0 tests · 22 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
9 ranges22 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
772 ranges3747 lines · 150 files · Browse complete extent
All tests (intent)
165 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: 22 introduced LOC across 9 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/chasm/lib/scheduler/gen/schedulerpb/v1/message.pb.go 12 introduced LOC · 3 ranges

Open complete file

633 func (*EventLog) ProtoMessage() {}
634
635 > func (x *EventLog) ProtoReflect() protoreflect.Message { message.pb.go
636 > mi := &file_temporal_server_chasm_lib_scheduler_proto_v1_message_proto_msgTypes[7]
637 > if x != nil {
638 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
639 > if ms.LoadMessageInfo() == nil {
640 > ms.StoreMessageInfo(mi)
641 > }
642 > return ms
643 }
644 return mi.MessageOf(x)
678 func (*Event) ProtoMessage() {}
679
680 > func (x *Event) ProtoReflect() protoreflect.Message { message.pb.go
681 > mi := &file_temporal_server_chasm_lib_scheduler_proto_v1_message_proto_msgTypes[8]
682 > if x != nil {
683 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
684 if ms.LoadMessageInfo() == nil {
687 return ms
688 }
689 > return mi.MessageOf(x) message.pb.go
690 }
691
go.temporal.io/server/chasm/lib/scheduler/scheduler.go 10 introduced LOC · 6 ranges

Open complete file

321
322 // LifecycleState implements the chasm.Component interface.
323 > func (s *Scheduler) LifecycleState(ctx chasm.Context) chasm.LifecycleState { scheduler.go
324 > if s.Closed {
325 return chasm.LifecycleStateCompleted
326 }
327
328 > return chasm.LifecycleStateRunning scheduler.go
329 }
330
974 }
975
976 > func (s *Scheduler) executionStatus() string { scheduler.go
977 > if s.Closed {
978 return executionStatusCompleted
979 }
980 > return executionStatusRunning scheduler.go
981 }
982
983 // SearchAttributes returns the Temporal-managed key values for visibility.
984 > func (s *Scheduler) SearchAttributes(ctx chasm.Context) []chasm.SearchAttributeKeyValue { scheduler.go
985 > if s.Sentinel {
986 return []chasm.SearchAttributeKeyValue{
987 executionStatusSearchAttribute.Value(s.executionStatus()),
1016 func (s *Scheduler) Memo(
1017 ctx chasm.Context,
1018 > ) proto.Message { scheduler.go
1019 > if s.Sentinel {
1020 return nil
1021 }