ansible / awx-resource-operator

41 stars 34 forks source link

add an optional job wait timeout field to AnsibleJob CR spec #41

Open mikeshng opened 3 years ago

mikeshng commented 3 years ago

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-timeout

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.