From 97a2bd2caf015ea85766af152356486aea3e7e6f Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 24 Dec 2021 08:53:17 +0900 Subject: [PATCH] Reduce frequency of task retries Ansible doesn't guarantee interval of retries and more frequent retry causes more overhead and delay in the whole timeout detection. This change reduces frequency of the polling task to check status of async task from 3 seconds x 1200 times to 10 seconds x 360 times to avoid to much overhead. Closes-Bug: #1955682 Change-Id: I7d0964693256b276b32c247533ef096a49fd6979 --- common/deploy-steps-tasks.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/deploy-steps-tasks.yaml b/common/deploy-steps-tasks.yaml index ff22d59ea7..be695c91a0 100644 --- a/common/deploy-steps-tasks.yaml +++ b/common/deploy-steps-tasks.yaml @@ -41,8 +41,8 @@ jid: "{{ puppet_host_async_result.ansible_job_id }}" register: puppet_host_outputs until: puppet_host_outputs.finished - retries: 1200 - delay: 3 + retries: 360 + delay: 10 failed_when: - (not puppet_host_outputs.finished) or (puppet_host_outputs.rc is defined and puppet_host_outputs.rc not in [0, 2]) when: