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
This commit is contained in:
Takashi Kajinami 2021-12-24 08:53:17 +09:00
parent b3e8e218f8
commit 97a2bd2caf
1 changed files with 2 additions and 2 deletions

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: