# Job terminated in error after 4 hours

**URL:** <https://forum.ansible.com/t/job-terminated-in-error-after-4-hours/38452>\
**Category:** AWX Project\
**Tags:** awx, galaxy-ng, ee, kubernetes\
**Created:** [September 19, 2023, 6:11am UTC](https://forum.ansible.com/t/job-terminated-in-error-after-4-hours/38452 "2023-09-19T06:11:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AWX\_Project1](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@AWX\_Project1](https://forum.ansible.com/u/AWX_Project1)\
**Post date:** [September 19, 2023, 6:11am UTC](https://forum.ansible.com/t/job-terminated-in-error-after-4-hours/38452/1 "2023-09-19T06:11:15Z")

</div>

Hi I have a problem already known by this community. The bug of a job that stop after 4 hours of execution with an error.  
The principal issue is known there : [https://github.com/ansible/awx/issues/11594](https://github.com/ansible/awx/issues/11594)

The bug is fix with this PR : [https://github.com/ansible/receptor/pull/683](https://github.com/ansible/receptor/pull/683) and I read the pre-requisites but still doesn’t work and problem still there.

I made my installation with this [https://github.com/kurokobo/awx-on-k3s](https://github.com/kurokobo/awx-on-k3s) and I’m using custom awx-ee

My job for testing is just a sleep for 18000sec (5h), and I enabled the `K8S Ansible Runner Keep-Alive Message Interval` in awx parameters for 1800sec (30min).

Version of my components :  
K3S server v1.25.12+k3s1

And this is my custom-ee :

```auto
---
version: 3

images:
base_image:
name: quay.io/rockylinux/rockylinux:9

dependencies:
ansible_core:
package_pip: ansible-core==2.15.3
ansible_runner:
package_pip: ansible-runner==2.3.4
galaxy: requirements.yml
python: requirements.txt
system: bindep.txt

additional_build_files:
- src: ansible.cfg
dest: configs

additional_build_steps:
append_base:
- RUN $PYCMD -m pip install -U pip
append_final:
- COPY --from=quay.io/ansible/receptor:v1.4.1 /usr/bin/receptor /usr/bin/receptor
- RUN mkdir -p /var/run/receptor
- RUN git lfs install --system
prepend_final:
- COPY _build/configs/ansible.cfg /etc/ansible/ansible.cfg

options:
user: root

```

I also tried k3s v1.25.4 and add the environment variable `RECEPTOR_KUBE_SUPPORT_RECONNECT` in the file : awx-on-k3s/base/awx.yaml :

```auto
---
apiVersion: awx.ansible.com/v1beta1
kind: AWX
metadata:
name: awx
spec:
{...}
ee_extra_env: |
- name: RECEPTOR_KUBE_SUPPORT_RECONNECT
value: enabled

```

and did `kubectl apply -k base` in the folder awx-on-k3s/ but bug still there

What am i doing wrong? Have I forgotten something?
