From e5b3f4d8bea1a8d1409a78280dd621d649d1d39b Mon Sep 17 00:00:00 2001 From: Marco Cucchi Date: Thu, 10 Oct 2024 16:45:10 +0200 Subject: [PATCH] cache data loaded from config file --- cads_processing_api_service/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cads_processing_api_service/config.py b/cads_processing_api_service/config.py index 901a4fc..040c69c 100644 --- a/cads_processing_api_service/config.py +++ b/cads_processing_api_service/config.py @@ -17,6 +17,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import functools import os import random @@ -61,6 +62,7 @@ ) +@functools.lru_cache def load_download_nodes(download_nodes_file: str) -> list[str]: download_nodes = [] try: