# Job get stuck in execution state when awx\_task container gets down

**URL:** <https://forum.ansible.com/t/job-get-stuck-in-execution-state-when-awx-task-container-gets-down/31863>\
**Category:** AWX Project\
**Created:** [December 23, 2019, 5:45am UTC](https://forum.ansible.com/t/job-get-stuck-in-execution-state-when-awx-task-container-gets-down/31863 "2019-12-23T05:45:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soniya\_panwar](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Soniya\_panwar](https://forum.ansible.com/u/Soniya_panwar)\
**Post date:** [December 23, 2019, 5:45am UTC](https://forum.ansible.com/t/job-get-stuck-in-execution-state-when-awx-task-container-gets-down/31863/1 "2019-12-23T05:45:55Z")

</div>

Hii

My job get stuck in execution state when awx\_task container gets down. After restarting the awx\_task container it throw a message “Task was marked as running in Tower but was not present in the job queue, so it has been marked as failed”. But i want Timeout or exception message should pop up after a few seconds.  
Can anyone please confirm is this a valid behaviour or a bug.

---

<div class="post-metadata">

**Author:** ![Wei-Yen\_Tan](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/wei-yen_tan/32/4111_2.png) [@Wei-Yen\_Tan](https://forum.ansible.com/u/Wei-Yen_Tan)\
**Post date:** [December 23, 2019, 6:36am UTC](https://forum.ansible.com/t/job-get-stuck-in-execution-state-when-awx-task-container-gets-down/31863/2 "2019-12-23T06:36:11Z")

</div>

What causes the task container to go down? It’s not suppose to

– You received this message because you are subscribed to the Google Groups “AWX Project” group. To unsubscribe from this group and stop receiving emails from it, send an email to . To view this discussion on the web visit .

---

<div class="post-metadata">

**Author:** ![Soniya\_panwar](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Soniya\_panwar](https://forum.ansible.com/u/Soniya_panwar)\
**Post date:** [December 23, 2019, 7:00am UTC](https://forum.ansible.com/t/job-get-stuck-in-execution-state-when-awx-task-container-gets-down/31863/3 "2019-12-23T07:00:14Z")

</div>

Hello Wei-Yen-Tan

Actually we are going to use AWX in our production environment. Thats why we are executing few test cases to test the behaviour of AWX. This is one of the test case in which we are testing the behaviour of execution of job if any container get down.  
This behaviour doesnt seems good for the production envioronment as we dont get any notification if awx\_task container gets down but job stuck in execution state.

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [December 23, 2019, 7:24am UTC](https://forum.ansible.com/t/job-get-stuck-in-execution-state-when-awx-task-container-gets-down/31863/4 "2019-12-23T07:24:50Z")

</div>

try restarting all containers or use docker-compose to stop/start application. In order to monitor containers, you will need external scripts/solution. This mostly wont be available in awx.

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [January 2, 2020, 2:33pm UTC](https://forum.ansible.com/t/job-get-stuck-in-execution-state-when-awx-task-container-gets-down/31863/5 "2020-01-02T14:33:09Z")

</div>

Wei-Yen-Tan,

We have code to deal with this situation. However, at least 1 AWX container must be running to execute the code that resolves these edge case situations/crashes. When it does find a job of this nature the job will be given a status of failed or error.

-Chris

---

<div class="post-metadata">

**Author:** ![Saravanesh\_d](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Saravanesh\_d](https://forum.ansible.com/u/Saravanesh_d)\
**Post date:** [January 2, 2020, 2:43pm UTC](https://forum.ansible.com/t/job-get-stuck-in-execution-state-when-awx-task-container-gets-down/31863/6 "2020-01-02T14:43:36Z")

</div>

please check df -Th – to check the space especially for /var
