1804
return err
1805
}
1807
>
shardInfo := trimShardInfo(s.config, s.clusterMetadata.GetAllClusterInfo(), s.copyShardInfo(resp.ShardInfo))
1808
>
shardInfo.Owner = s.owner
1809
>
1810
>
// initialize the cluster current time to be the same as ack level
1811
>
remoteClusterInfos := make(map[string]*remoteClusterInfo)
1812
>
var taskMinScheduledTime time.Time
1813
>
currentClusterName := s.GetClusterMetadata().GetCurrentClusterName()
1814
>
taskCategories := s.taskCategoryRegistry.GetCategories()
1815
>
for clusterName, info := range s.GetClusterMetadata().GetAllClusterInfo() {
1816
>
if !info.Enabled {
1817
continue
1818
}
1819
1821
>
for categoryID, queueState := range shardInfo.QueueStates {
1822
category, ok := taskCategories[int(categoryID)]
1823
if !ok || category.Type() != tasks.CategoryTypeScheduled {