From a1b56c059de77e57c604d57dee43ea1f781b92a8 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Wed, 24 Jul 2024 13:27:14 +0300 Subject: [PATCH] truncate unused_ports to reduce the size of app_versions.json --- catalog_reader/catalog.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/catalog_reader/catalog.py b/catalog_reader/catalog.py index 631d680..fdcdd73 100644 --- a/catalog_reader/catalog.py +++ b/catalog_reader/catalog.py @@ -41,6 +41,8 @@ def retrieve_trains_data( trains_to_traverse: list, job: typing.Any = None, questions_context: typing.Optional[dict] = None ) -> typing.Tuple[dict, set]: questions_context = questions_context or get_default_questions_context() + # Truncate unused_ports to reduce the size of app_versions.json + questions_context['unused_ports'] = questions_context['unused_ports'][:3] trains = { 'stable': {}, **{k: {} for k in trains_to_traverse},