From 7cf3af6a01bf4fe3722bb05c44bc46d48cbc8abf Mon Sep 17 00:00:00 2001 From: Alex Schultz Date: Thu, 23 Jul 2020 13:34:54 -0600 Subject: [PATCH] [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 --- tripleo_common/actions/ansible.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleo_common/actions/ansible.py b/tripleo_common/actions/ansible.py index 2a87510d8..f39cd1168 100644 --- a/tripleo_common/actions/ansible.py +++ b/tripleo_common/actions/ansible.py @@ -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()