Experimental fix to the memory leak issue in ingester. Additional work on the indexer

This commit is contained in:
2024-09-13 10:43:33 +03:00
parent e5663e3c30
commit c27ac6ce97
2 changed files with 13 additions and 4 deletions

View File

@@ -16,6 +16,8 @@ def healpix(nside): #NSIDE 2048, ORDER ring or nested
for catalog_file in CatalogFile.objects.filter(status='INGESTED'):
print(f'[{current_time()}] Loading sources from {catalog_file.name}...')
sources = list(catalog_file.sources.all())
print(f'[{current_time()}] Sources ready. Forming ra & dec arrays...')