[TRAIN-and-older] Reduce wait time to send ansible output

Currently we wait 30 seconds before sending output back to the end user.
This can lead to really large messages and artificial delay for the user
watching the actions.  This change reduces the time we wait to 5 seconds
to ensure the end user gets more frequent updates on the deployment
status.

We dropped this in Ussuri so it only applies to Train and older.

Change-Id: I2f3a08fa543642d2f9d5b5fbe11016b3cfa9f910
This commit is contained in:
Alex Schultz 2020-07-23 13:34:54 -06:00
parent d200546022
commit 7cf3af6a01
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ class AnsiblePlaybookAction(base.TripleOAction):
lines.append(line)
if not self.trash_output:
stdout.append(line)
if time.time() - start > 30:
if time.time() - start > 5:
self.post_message(queue, ''.join(lines))
lines = []
start = time.time()