matching_engine.go ×7
Frontier kind: Code frontier
unlabeled · c_51d73ae4e93b
14 tests · 4873 LOC · 179 files · introduces 0 tests · 28 LOC · 2 files
Introduces — evidence that enters the hierarchy at this concept
Code
9 ranges 28 lines · 2 files
Tests
0 tests
Contains — complete concept membership
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.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
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.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
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: 28 introduced LOC across 9 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
go.temporal.io/server/service/matching/matching_engine.go 20 introduced LOC · 7 ranges
Open complete file
1432
ctx context . Context ,
1433
request * matchingservice . DescribeTaskQueueRequest ,
1435
>
req := request . GetDescRequest ()
1436
>
1437
>
// This has been deprecated.
1438
>
if req . ApiMode == enumspb . DESCRIBE_TASK_QUEUE_MODE_ENHANCED {
1439
rootPartition , err := tqid . PartitionFromProto ( req . GetTaskQueue (), request . GetNamespaceId (), req . GetTaskQueueType ())
1440
if err != nil {
1591
}
1592
1593
>
partition , err := tqid . PartitionFromProto ( req . TaskQueue , request . GetNamespaceId (), req . TaskQueueType )
matching_engine.go
1594
>
if err != nil {
1595
return nil , err
1596
}
1597
>
pm , _ , err := e . getTaskQueuePartitionManager ( ctx , partition , true , loadCauseDescribe )
matching_engine.go
1598
>
if err != nil {
1599
return nil , err
1600
}
1601
//nolint:staticcheck // SA1019 deprecated
1602
>
descrResp , err := pm . LegacyDescribeTaskQueue ( req . GetIncludeTaskQueueStatus ())
matching_engine.go
1603
>
if err != nil {
1604
return nil , err
1605
}
1606
1608
if ! pm . Partition (). IsRoot () {
1609
return nil , serviceerror . NewInvalidArgument ( "DescribeTaskQueue stats are only supported for the root partition" )
1705
}
1706
1708
userData , _ , err := pm . GetUserDataManager (). GetUserData ()
1709
if err != nil {
1713
}
1714
1715
>
effectiveRPS , sourceForEffectiveRPS := pm . GetRateLimitManager (). GetEffectiveRPSAndSource ()
matching_engine.go
1716
>
descrResp . DescResponse . EffectiveRateLimit = & workflowservice . DescribeTaskQueueResponse_EffectiveRateLimit {
1717
>
RequestsPerSecond : float32 ( effectiveRPS ),
1718
>
RateLimitSource : sourceForEffectiveRPS ,
1719
>
}
1720
>
1721
>
return descrResp , nil
1722
}
1723
go.temporal.io/server/api/matchingservice/v1/request_response.pb.go 8 introduced LOC · 2 ranges
Open complete file
1812
}
1813
1815
>
if x != nil {
1816
>
return x . NamespaceId
1817
>
}
1818
return ""
1819
}
1820
1821
>
func ( x * DescribeTaskQueueRequest ) GetDescRequest () * v1 . DescribeTaskQueueRequest {
request_response.pb.go
1822
>
if x != nil {
1823
>
return x . DescRequest
1824
>
}
1825
return nil
1826
}