ostree/tests/installed/execute_batch.yml
Colin Walters 76f3e603f9 tests: Lower retry timeout to 5s
No need to poll every second, there's going to be some latency
here and we want to avoid the overhead of polling.

Closes: #1548
Approved by: cgwalters
2018-04-23 17:23:40 +00:00

24 lines
665 B
YAML

#####################
# execute_batch.yml
#####################
- name: Begin async command execution
shell: "{{ async_item }} &> {{ logdir }}/{{ async_item|basename }}.log"
# 10 minutes; the PAPR tester generally times out before that
async: 600
poll: 0
with_items: "{{ async_commands }}"
loop_control:
loop_var: "async_item"
register: async_results
- name: Check async command status
async_status:
jid: "{{ async_result_item.ansible_job_id }}"
with_items: "{{ async_results.results }}"
loop_control:
loop_var: "async_result_item"
register: async_poll_results
until: async_poll_results.finished
retries: 500
retry_pause: 5