Hi All,
Hope you all are doing good in these trying times !
I have AWX 15.0.0 in my environment.
And some times job templates gets failed due to random errors, which does get correctly when we re run that job template.
So is there a way I can configure in job templates to retry twice or thrice before finally failing the job ?
If yes, can you please help me with that option.
If no, can you please suggest as in how such situations are handled ?
Regards,
Ankur Porwal
Hi Ankur,
I’ve had similar issues occur. It depends on what the task is to appropriately handle the issue.
The issue I had was starting a service after updating and rebooting the system. Sometimes the service would fail to restart even though I gave the system some time to recover after rebooting.
To troubleshoot or correct the issue I extended the pause period after rebooting and I also added a 2nd attempt task to perform the same action again. On the 1st attempt task you’ll want to add the “ignore_errors: yes” parameter to the bottom of the task so if it fails on the first attempt it will continue to the 2nd attempt.
I hope this helps. If you need further guidance, more information will be needed.
Cheers,
Keith