From 00a52f3586b759326e9823242e9a12b4630014e9 Mon Sep 17 00:00:00 2001 From: MartinBelthle Date: Wed, 18 Sep 2024 18:26:16 +0200 Subject: [PATCH] chore(variants): increase timeout duration for variant generation (#2144) --- antarest/study/storage/variantstudy/variant_study_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/antarest/study/storage/variantstudy/variant_study_service.py b/antarest/study/storage/variantstudy/variant_study_service.py index 4433a6ac07..1e26a20c8a 100644 --- a/antarest/study/storage/variantstudy/variant_study_service.py +++ b/antarest/study/storage/variantstudy/variant_study_service.py @@ -497,7 +497,7 @@ def get( Returns: study data formatted in json """ - self._safe_generation(metadata, timeout=60) + self._safe_generation(metadata, timeout=600) self.repository.refresh(metadata) return super().get( metadata=metadata, @@ -939,7 +939,7 @@ def get_study_sim_result(self, study: VariantStudy) -> t.List[StudySimResultDTO] study: study Returns: study output data """ - self._safe_generation(study, timeout=60) + self._safe_generation(study, timeout=600) return super().get_study_sim_result(study=study) def set_reference_output(self, metadata: VariantStudy, output_id: str, status: bool) -> None: