workflow.go ×4

Frontier kind: Code frontier

unlabeled · c_0196c9752692

23 tests · 3176 LOC · 122 files · introduces 0 tests · 37 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges37 lines · 2 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
565 ranges3176 lines · 122 files · Browse complete extent
All tests (intent)
23 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: 37 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/api/schedule/v1/message.pb.go 22 introduced LOC · 3 ranges

Open complete file

590 func (*WatchWorkflowRequest) ProtoMessage() {}
591
592 > func (x *WatchWorkflowRequest) ProtoReflect() protoreflect.Message { message.pb.go
593 > mi := &file_temporal_server_api_schedule_v1_message_proto_msgTypes[6]
594 > if x != nil {
595 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
596 > if ms.LoadMessageInfo() == nil {
597 > ms.StoreMessageInfo(mi)
598 > }
599 > return ms
600 }
601 return mi.MessageOf(x)
642 }
643
644 > func (x *WatchWorkflowResponse) Reset() { message.pb.go
645 > *x = WatchWorkflowResponse{}
646 > mi := &file_temporal_server_api_schedule_v1_message_proto_msgTypes[7]
647 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
648 > ms.StoreMessageInfo(mi)
649 > }
650
651 func (x *WatchWorkflowResponse) String() string {
655 func (*WatchWorkflowResponse) ProtoMessage() {}
656
657 > func (x *WatchWorkflowResponse) ProtoReflect() protoreflect.Message { message.pb.go
658 > mi := &file_temporal_server_api_schedule_v1_message_proto_msgTypes[7]
659 > if x != nil {
660 > ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
661 > if ms.LoadMessageInfo() == nil {
662 > ms.StoreMessageInfo(mi)
663 > }
664 > return ms
665 }
666 return mi.MessageOf(x)
go.temporal.io/server/service/worker/scheduler/workflow.go 15 introduced LOC · 4 ranges

Open complete file

884 }
885
886 > func (s *scheduler) processWatcherResult(id string, f workflow.Future, long bool) { workflow.go
887 > var res schedulespb.WatchWorkflowResponse
888 > err := f.Get(s.ctx, &res)
889 > if err != nil {
890 s.logger.Error("error from workflow watcher future", "workflow", id, "error", err, "long", long)
891 return
892 }
893
894 > if res.Status == enumspb.WORKFLOW_EXECUTION_STATUS_RUNNING { workflow.go
895 // this should only happen for a refresh, not a long-poll
896 if long {
1604 futures := make([]workflow.Future, len(executions))
1605 for i, ex := range executions {
1606 > req := &schedulespb.WatchWorkflowRequest{ workflow.go
1607 > // Note: do not send runid here so that we always get the latest one
1608 > Execution: &commonpb.WorkflowExecution{WorkflowId: ex.WorkflowId},
1609 > FirstExecutionRunId: ex.RunId,
1610 > LongPoll: false,
1611 > }
1612 > futures[i] = workflow.ExecuteLocalActivity(ctx, s.a.WatchWorkflow, req)
1613 > }
1614 for i, ex := range executions {
1615 > s.processWatcherResult(ex.WorkflowId, futures[i], false) workflow.go
1616 > }
1617 }
1618