mirror of
https://github.com/ostreedev/ostree.git
synced 2024-12-23 21:35:26 +03:00
76f3e603f9
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
24 lines
665 B
YAML
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
|