Skip to content

Commit

Permalink
chore: caching _gen_projects_to_wait_for
Browse files Browse the repository at this point in the history
  • Loading branch information
xadahiya committed Oct 1, 2024
1 parent a7d3dbe commit 2a0a004
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snapshotter/processor_distributor.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import sys
import time
from collections import defaultdict
from functools import lru_cache
from functools import partial
from signal import SIGINT
from signal import signal
Expand Down Expand Up @@ -721,6 +722,7 @@ def _fetch_base_project_list(self, project_type: str) -> List[str]:
base_project_type = self._aggregator_config_mapping[project_type].base_project_type
return self._fetch_base_project_list(base_project_type)

@lru_cache(maxsize=None)
def _gen_projects_to_wait_for(self, project_type: str) -> List[str]:
"""
Generates the projects to wait for based on the project type.
Expand Down

0 comments on commit 2a0a004

Please sign in to comment.