mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Get more specific as to which timeout caused the issue
This commit is contained in:
parent
75597cf29c
commit
86e7151508
@ -48,7 +48,7 @@ def monitor_workflow(response, session, print_stdout=True, action_timeout=None,
|
||||
while True:
|
||||
if action_timeout and time.time() - started > action_timeout:
|
||||
if print_stdout:
|
||||
cprint('Monitoring aborted due to timeout.', 'red')
|
||||
cprint('Monitoring aborted due to action-timeout.', 'red')
|
||||
break
|
||||
|
||||
if sys.stdout.isatty():
|
||||
@ -99,7 +99,7 @@ def monitor(response, session, print_stdout=True, action_timeout=None, interval=
|
||||
while True:
|
||||
if action_timeout and time.time() - started > action_timeout:
|
||||
if print_stdout:
|
||||
cprint('Monitoring aborted due to timeout.', 'red')
|
||||
cprint('Monitoring aborted due to action-timeout.', 'red')
|
||||
break
|
||||
next_line = fetch(next_line)
|
||||
if next_line:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user