From c0bca0bb8bf66fb34def7459f757140ce3825a25 Mon Sep 17 00:00:00 2001 From: Johannes Koester Date: Thu, 21 Sep 2023 10:08:24 +0200 Subject: [PATCH] feat: allow to set latency_wait in executor test suite --- snakemake/common/tests/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snakemake/common/tests/__init__.py b/snakemake/common/tests/__init__.py index 2aa80850d..de02e1d51 100644 --- a/snakemake/common/tests/__init__.py +++ b/snakemake/common/tests/__init__.py @@ -31,6 +31,7 @@ class TestWorkflowsBase(ABC): __test__ = False expect_exception = None omit_tmp = False + latency_wait = 5 @abstractmethod def get_executor(self) -> str: @@ -104,6 +105,9 @@ def _run_workflow(self, test_name, tmp_path, deployment_method=frozenset()): dag_api.execute_workflow( executor=self.get_executor(), executor_settings=self.get_executor_settings(), + execution_settings=settings.ExecutionSettings( + latency_wait=self.latency_wait, + ), remote_execution_settings=settings.RemoteExecutionSettings( seconds_between_status_checks=0, envvars=self.get_envvars(),