From dd386a88c33e551f28101461c143b382cec6b85a Mon Sep 17 00:00:00 2001 From: Abderrahim AZIME Date: Thu, 28 Sep 2023 16:15:20 +0200 Subject: [PATCH 1/2] Fix variables env --- .../jormungandr/default_settings.py | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/source/jormungandr/jormungandr/default_settings.py b/source/jormungandr/jormungandr/default_settings.py index fd905cacfb..914534043a 100644 --- a/source/jormungandr/jormungandr/default_settings.py +++ b/source/jormungandr/jormungandr/default_settings.py @@ -155,62 +155,62 @@ ISOCHRONE_DEFAULT_VALUE = os.getenv('JORMUNGANDR_ISOCHRONE_DEFAULT_VALUE', 1800) # in s # circuit breaker parameters. -CIRCUIT_BREAKER_MAX_INSTANCE_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_INSTANCE_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_INSTANCE_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_TIMEO_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_TIMEO_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_TIMEO_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_TIMEO_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_TIMEO_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_TIMEO_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_SYTRAL_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_SYTRAL_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_SYTRAL_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_VALHALLA_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_VALHALLA_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_VALHALLA_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_GEOVELO_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_GEOVELO_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_GEOVELO_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_HERE_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_HERE_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_HERE_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_HERE_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_HERE_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_HERE_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_CYKLEO_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_CYKLEO_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CYKLEO_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_KAROS_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_KAROS_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_KAROS_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_KAROS_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_KAROS_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_KAROS_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_BRAGI_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_BRAGI_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_BRAGI_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_BRAGI_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_BRAGI_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_BRAGI_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_ASGARD_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_ASGARD_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_ASGARD_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_ASGARD_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_ASGARD_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_ASGARD_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_KLAXIT_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_KLAXIT_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_KLAXIT_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_OUESTGO_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_OUESTGO_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_OUESTGO_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) -CIRCUIT_BREAKER_MAX_FORSETI_FAIL = 4 # max instance call failures before stopping attempt -CIRCUIT_BREAKER_FORSETI_TIMEOUT_S = 60 # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_FORSETI_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_FORSETI_FAIL', 4)) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_FORSETI_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_FORSETI_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) # Default region instance From fd5c3badae97131bb59013a5472a0b7ebfcc844c Mon Sep 17 00:00:00 2001 From: Abderrahim AZIME Date: Thu, 28 Sep 2023 17:07:51 +0200 Subject: [PATCH 2/2] pre-commit --- .../jormungandr/default_settings.py | 188 ++++++++++++------ 1 file changed, 132 insertions(+), 56 deletions(-) diff --git a/source/jormungandr/jormungandr/default_settings.py b/source/jormungandr/jormungandr/default_settings.py index 914534043a..ca141d9c44 100644 --- a/source/jormungandr/jormungandr/default_settings.py +++ b/source/jormungandr/jormungandr/default_settings.py @@ -155,62 +155,138 @@ ISOCHRONE_DEFAULT_VALUE = os.getenv('JORMUNGANDR_ISOCHRONE_DEFAULT_VALUE', 1800) # in s # circuit breaker parameters. -CIRCUIT_BREAKER_MAX_INSTANCE_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_INSTANCE_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_TIMEO_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_TIMEO_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_TIMEO_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_TIMEO_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_SYTRAL_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_SYTRAL_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_VALHALLA_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_VALHALLA_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_GEOVELO_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_GEOVELO_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_HERE_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_HERE_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_HERE_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_HERE_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_CYKLEO_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CYKLEO_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_KAROS_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_KAROS_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_KAROS_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_KAROS_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_BRAGI_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_BRAGI_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_BRAGI_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_BRAGI_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_ASGARD_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_ASGARD_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_ASGARD_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_ASGARD_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_KLAXIT_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_KLAXIT_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_OUESTGO_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_OUESTGO_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) - -CIRCUIT_BREAKER_MAX_FORSETI_FAIL = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_FORSETI_FAIL', 4)) # max instance call failures before stopping attempt -CIRCUIT_BREAKER_FORSETI_TIMEOUT_S = int(os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_FORSETI_TIMEOUT_S', 60)) # the circuit breaker retries after this timeout (in seconds) +CIRCUIT_BREAKER_MAX_INSTANCE_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_INSTANCE_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_INSTANCE_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_TIMEO_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_TIMEO_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_TIMEO_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_TIMEO_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_SYNTHESE_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_SYNTHESE_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_JCDECAUX_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_JCDECAUX_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CAR_PARK_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CAR_PARK_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CLEVERAGE_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CLEVERAGE_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_SYTRAL_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_SYTRAL_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_SYTRAL_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_VALHALLA_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_VALHALLA_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_VALHALLA_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_GEOVELO_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_GEOVELO_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_GEOVELO_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_HERE_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_HERE_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_HERE_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_HERE_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_CYKLEO_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_CYKLEO_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_CYKLEO_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_INSTANT_SYSTEM_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_INSTANT_SYSTEM_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_BLABLALINES_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_BLABLALINES_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_KAROS_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_KAROS_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_KAROS_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_KAROS_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_BRAGI_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_BRAGI_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_BRAGI_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_BRAGI_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_ASGARD_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_ASGARD_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_ASGARD_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_ASGARD_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_KLAXIT_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_KLAXIT_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_KLAXIT_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_OUESTGO_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_OUESTGO_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_OUESTGO_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) + +CIRCUIT_BREAKER_MAX_FORSETI_FAIL = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_MAX_FORSETI_FAIL', 4) +) # max instance call failures before stopping attempt +CIRCUIT_BREAKER_FORSETI_TIMEOUT_S = int( + os.getenv('JORMUNGANDR_CIRCUIT_BREAKER_FORSETI_TIMEOUT_S', 60) +) # the circuit breaker retries after this timeout (in seconds) # Default region instance