# AWX job terminated - task timeout?

**URL:** <https://forum.ansible.com/t/awx-job-terminated-task-timeout/37392>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [November 28, 2022, 4:20pm UTC](https://forum.ansible.com/t/awx-job-terminated-task-timeout/37392 "2022-11-28T16:20:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![epi82](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@epi82](https://forum.ansible.com/u/epi82)\
**Post date:** [November 28, 2022, 4:20pm UTC](https://forum.ansible.com/t/awx-job-terminated-task-timeout/37392/1 "2022-11-28T16:20:34Z")

</div>

Hello,  
I’m having an issue with a job template on AWX that terminated unexpectedly.  
AKS version: 1.23.12  
AWX version: 21.6.0

The automation job pod terminated on aks while waiting for a task execution without any errors on awx after 5 minutes.  
I can reproduce the issue each time I run a playbook with a task that has a long execution (about 5 minutes… not so long ☹ )

There is a timeout for task execution? Why the pod terminated?

 ![1.PNG](https://us1.discourse-cdn.com/ansible/original/2X/3/395624a8fe92d26ae01255e5af42c95d80473a9e.png)

 ![2.PNG](https://us1.discourse-cdn.com/ansible/original/2X/c/cc8d85a399df7f7e6fc0e2341bf9f83f2edd0fa5.png)

And on AWX I see error:

 ![3.PNG](https://us1.discourse-cdn.com/ansible/original/2X/d/d4259789f9d88e2df9a837cc81c2957571a1ac7f.png)

Any suggests?

Thank you very much.

Elia

---

<div class="post-metadata">

**Author:** ![epi82](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@epi82](https://forum.ansible.com/u/epi82)\
**Post date:** [November 29, 2022, 9:13am UTC](https://forum.ansible.com/t/awx-job-terminated-task-timeout/37392/2 "2022-11-29T09:13:15Z")

</div>

I’ve replicated the issue with a simple task on ansible:

**_- name: Sleep for seconds and continue with play_**  
**_wait\_for:_**  
**_timeout: 600_**

After 5 minutes the pod terminated and automation failed.  
Is there any setting to increase this timeout?

Thank you very much for your help.

Elia

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [November 30, 2022, 8:00pm UTC](https://forum.ansible.com/t/awx-job-terminated-task-timeout/37392/3 "2022-11-30T20:00:03Z")

</div>

this is a known issue in AKS and has been reported on AWX github issues, see this comment that describes the problem [https://github.com/ansible/awx/issues/12530#issuecomment-1279364075](https://github.com/ansible/awx/issues/12530#issuecomment-1279364075)

This PR may help [https://github.com/ansible/receptor/pull/683](https://github.com/ansible/receptor/pull/683)

the latest awx-ee image already has this fix, but you’ll need to be on a k8s version specified here [https://github.com/ansible/receptor/pull/683/files#diff-792611baeb730234abface9c9bc33204ea86453469e7fcdfbe8de8d4e04f2598R659](https://github.com/ansible/receptor/pull/683/files#diff-792611baeb730234abface9c9bc33204ea86453469e7fcdfbe8de8d4e04f2598R659)

in order for the fix to take affect.

Please try it and let us know if it fixes the 5 minute idle timeout issue you are experiencing

AWX Team

---

<div class="post-metadata">

**Author:** ![epi82](https://avatars.discourse-cdn.com/v4/letter/e/ed655f/32.png) [@epi82](https://forum.ansible.com/u/epi82)\
**Post date:** [December 1, 2022, 8:52am UTC](https://forum.ansible.com/t/awx-job-terminated-task-timeout/37392/4 "2022-12-01T08:52:19Z")

</div>

Thanks for reply.  
Meanwhile I’ve found and tested I workaround to fix this AKS issue with AWX: [https://github.com/ansible/awx/issues/12530#issuecomment-1192616101](https://github.com/ansible/awx/issues/12530#issuecomment-1192616101)

Unfortunaly my AKS cluster is in 1.23.12 and from azure portal is not possible to upgrade it to 1.23.14 or other versions specified.

So I can’t test it right now… but I hope it will fixe the issue. As soon as I can update the cluster to the required versions I’ll give you a feedback.

Elia
