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