-1 for no timeout

This commit is contained in:
Nicholas Albion
2023-10-06 19:02:48 +11:00
parent fffc4d9dd0
commit bd0486cce3
2 changed files with 2 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ def command_definition(description_command=f'A single command that needs to be e
description_timeout=
'Timeout in milliseconds that represent the approximate time this command takes to finish. '
'If you need to run a command that doesnt\'t finish by itself (eg. a command to run an app), '
'set the timeout to 0 and provide a process_name. '
'set the timeout to -1 and provide a process_name. '
'If you need to create a directory that doesn\'t exist and is not the root project directory, '
'always create it by running a command `mkdir`'):
return {

View File

@@ -124,7 +124,7 @@ def execute_command(project, command, timeout=None, process_name: str = None, fo
exit_code (int): The exit code of the process.
"""
if timeout is not None:
if timeout == 0:
if timeout < 0:
timeout = None
else:
if timeout < 1000: