From 08187cd93fb711338ad8fc47e49c7839623f74f8 Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Fri, 4 Aug 2023 10:13:52 +0200 Subject: [PATCH] Make timeout at least 2000ms while running commands --- euclid/helpers/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/euclid/helpers/cli.py b/euclid/helpers/cli.py index 5246c16..dd454fb 100644 --- a/euclid/helpers/cli.py +++ b/euclid/helpers/cli.py @@ -38,6 +38,7 @@ def run_command(command, root_path, q_stdout, q_stderr, pid_container): def execute_command(project, command, timeout=5000): # check if we already have the command run saved + timeout = max(timeout, 2000) print(colored(f'Can i execute the command: `{command}` with {timeout}ms timeout?', 'white', attrs=['bold'])) project.command_runs_count += 1 command_run = get_command_run_from_hash_id(project, command)