Revert "Revert "Temporarily disable regeneration of old results""

This reverts commit e5f37269fe.

We need again this revert to investigate yet another memory
usage issue on Heroku...
This commit is contained in:
Marco Castelluccio 2020-04-08 03:05:42 +02:00
Родитель 5e41ffd71c
Коммит 3ae7b6c74c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -124,14 +124,14 @@ class Retriever(object):
# algorithm is currently pretty slow, so we only regenerate 1000 pushes whenever we
# run.
to_regenerate = set()
for push in pushes[::-1]:
"""for push in pushes[::-1]:
cached = adr.config.cache.get(cache_key(push))
if not cached:
continue
value, mozci_version = cached
if mozci_version != MOZCI_VERSION and len(to_regenerate) < 1000:
to_regenerate.add(value[0][0])
to_regenerate.add(value[0][0])"""
for push in tqdm(pushes):
key = cache_key(push)