request_response.pb.go ×4

Frontier kind: Code frontier

unlabeled · c_ca45fc9ffdb6

9 tests · 2822 LOC · 139 files · introduces 0 tests · 38 LOC · 2 files

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges38 lines · 2 files
Tests
0 tests

Contains — complete concept membership

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

go.temporal.io/server/service/matching/matching_engine.go 22 introduced LOC · 3 ranges

Open complete file

1375 }
1376
1377 > e.logger.Debug("Cancelling worker polls", matching_engine.go
1378 > tag.WorkflowNamespaceID(request.GetNamespaceId()),
1379 > tag.WorkflowTaskQueueName(request.GetTaskQueuePartition().GetTaskQueue()),
1380 > tag.NewInt("worker-count", len(request.GetWorkers())),
1381 > tag.NewInt("partition-count", len(request.GetPartitions())),
1382 > )
1383 >
1384 > // Cancel polls for each worker.
1385 > var cancelledCount int32
1386 > for _, worker := range request.GetWorkers() {
1387 > if worker.GetWorkerInstanceKey() != "" {
1388 > e.shutdownWorkers.Put(worker.GetWorkerInstanceKey(), struct{}{})
1389 > }
1390 > cancelledCount += e.workerInstancePollers.CancelAll(worker.GetWorkerInstanceKey())
1391 }
1392
1393 // Remove each worker from poller history for each partition.
1394 > for _, partitionProto := range request.GetPartitions() { matching_engine.go
1395 > partition := tqid.PartitionFromPartitionProto(partitionProto, request.GetNamespaceId())
1396 > for _, worker := range request.GetWorkers() {
1397 > e.removePollerFromHistory(ctx, partition, worker.GetWorkerIdentity())
1398 > }
1399 }
1400
1401 > return &matchingservice.CancelOutstandingWorkerPollsPartitionResponse{ matching_engine.go
1402 > CancelledCount: cancelledCount,
1403 > }, nil
1404 }
1405
go.temporal.io/server/api/matchingservice/v1/request_response.pb.go 16 introduced LOC · 4 ranges

Open complete file

1701 }
1702
1703 > func (x *CancelOutstandingWorkerPollsPartitionRequest) GetNamespaceId() string { request_response.pb.go
1704 > if x != nil {
1705 > return x.NamespaceId
1706 > }
1707 return ""
1708 }
1709
1710 > func (x *CancelOutstandingWorkerPollsPartitionRequest) GetTaskQueuePartition() *v18.TaskQueuePartition { request_response.pb.go
1711 > if x != nil {
1712 > return x.TaskQueuePartition
1713 > }
1714 return nil
1715 }
5771 }
5772
5773 > func (x *CancelOutstandingWorkerPollsPartitionRequest_WorkerEntry) GetWorkerInstanceKey() string { request_response.pb.go
5774 > if x != nil {
5775 > return x.WorkerInstanceKey
5776 > }
5777 return ""
5778 }
5779
5780 > func (x *CancelOutstandingWorkerPollsPartitionRequest_WorkerEntry) GetWorkerIdentity() string { request_response.pb.go
5781 > if x != nil {
5782 > return x.WorkerIdentity
5783 > }
5784 return ""
5785 }