662
// pollers which polled this taskqueue in last few minutes and status of taskqueue's ackManager
663
// (readLevel, ackLevel, backlogCountHint and taskIDBlock).
664
>
func (c *physicalTaskQueueManagerImpl) LegacyDescribeTaskQueue(includeTaskQueueStatus bool) *matchingservice.DescribeTaskQueueResponse {
physical_task_queue_manager.go
665
>
response := &matchingservice.DescribeTaskQueueResponse{
666
>
DescResponse: &workflowservice.DescribeTaskQueueResponse{
667
>
Pollers: c.GetAllPollerInfo(),
668
>
},
669
>
}
670
>
if includeTaskQueueStatus {
671
>
// Don't look at c.drainBacklogMgr here, we can't merge info from the draining queue
672
>
// with this interface. Use GetInternalTaskQueueStatus instead.
673
>
response.DescResponse.TaskQueueStatus = c.backlogMgr.BacklogStatus()
674
>
rps, _ := c.partitionMgr.GetRateLimitManager().GetEffectiveRPSAndSource()
675
>
//nolint:staticcheck // SA1019: using deprecated TaskQueueStatus for legacy compatibility
676
>
response.DescResponse.TaskQueueStatus.RatePerSecond = rps
677
>
}
678
>
return response
679
}
680