Hi everyone, how are you doing?
I have a conceptual question that I would like your comments if possible.
I’m using async with poll 0 on a loop. Something like this
async: 45
poll: 0
with_items: “{{ big_list }}”
Let’s say this loop has 50 commands.
All the commands are started almost at the same time. So far so good.
But when Ansible starts waiting for the conclusion on the next task with something like this
until: async_poll_results.finished
retries: 30
I notice that if the first job fails after 10 retries.
Ansible will keep waiting for the other jobs, but it will not continue the countdown from 20. IT will restart the countdown to 30 again.
I think that’s not ideal, because my waiting time can grow greatly if the first ones are delayed, and the latter only starts after that.
Is there any way I can use only one countdown for all the jobs in a batch with no restarts?