Skip to content

Commit

Permalink
-1 for no timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nalbion committed Oct 6, 2023
1 parent fffc4d9 commit bd0486c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pilot/const/function_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pilot/helpers/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bd0486c

Please sign in to comment.