Skip to content

Commit

Permalink
feat: allow to set latency_wait in executor test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Sep 21, 2023
1 parent 96ee642 commit c0bca0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snakemake/common/tests/__init__.py
Expand Up @@ -31,6 +31,7 @@ class TestWorkflowsBase(ABC):
__test__ = False
expect_exception = None
omit_tmp = False
latency_wait = 5

@abstractmethod
def get_executor(self) -> str:
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit c0bca0b

Please sign in to comment.