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
(cherry picked from commit 97a2bd2caf)
This commit is contained in:
Takashi Kajinami 2021-12-24 08:53:17 +09:00
parent 91bf7b11aa
commit 482760d2ef

View File

@ -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: