I propose we add a new optional field to AnsibleJob CR spec that is int type with the name job_wait_timeout. If this value is given, then it will be passed to the tower_ job_wait module as the timeout value and the AnsibleJob will timeout and update its status accordingly.
In the job runner execution, it calls the
tower_ job_wait
module but currently there is no timeout value given so it might wait indefinitely. For more information: https://docs.ansible.com/ansible/latest/collections/awx/awx/tower_job_wait_module.html#parameter-timeoutI propose we add a new optional field to AnsibleJob CR spec that is
int
type with the namejob_wait_timeout
. If this value is given, then it will be passed to thetower_ job_wait
module as the timeout value and the AnsibleJob will timeout and update its status accordingly.