Skip to content

Commit

Permalink
reduce number of cached meta extractors
Browse files Browse the repository at this point in the history
(cherry picked from commit 5a5d5ac)
  • Loading branch information
Belissimo-T committed Nov 8, 2024
1 parent 60b8851 commit 6e6a931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/meta_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, cache: Cache, num_last_days: int | None = 10, *, logger: logg
self._rooms: set[str] | None = None
self._daily_extractors: dict[tuple[datetime.date, datetime.datetime], DailyMetaExtractor] = {}
self._daily_extractors_lock = threading.Lock()
self._max_cached_extractors = 10
self._max_cached_extractors = 1

def iterate_daily_extractors(self) -> typing.Generator[DailyMetaExtractor, None, None]:
for day in self.cache.get_days()[:self.num_last_days]:
Expand Down

0 comments on commit 6e6a931

Please sign in to comment.