2101
targetBuildId string,
2102
activeRules []*persistencespb.RedirectRule,
2104
>
// We need to load all physical queues for upstream build IDs because even though
2105
>
// no new tasks will be sent to them, they might have old tasks in the db.
2106
>
// Also mark them alive, so that their liveness will be roughly synchronized.
2107
>
// TODO: make this more efficient so it does not MarkAlive on every poll
2108
>
for _, buildId := range getUpstreamBuildIds(targetBuildId, activeRules) {
2109
tqm, _ := pm.getVersionedQueueNoWait("", buildId, nil, true)
2110
if tqm != nil {