xebialabs-community / xlr-ansible-tower-plugin

Launch Ansible Tower Jobs from XL Release
MIT License
1 stars 8 forks source link

The task crashes while the Tower job is successful #18

Open jeremydelmotte opened 1 year ago

jeremydelmotte commented 1 year ago

Hi guys,

I use the "Launch Job" task in several of my Release templates, and sometimes I have a few tasks that crash with Java errors, including:

Exception during execution: javax.script.ScriptException: tower_cli.exceptions.AuthError: Invalid Tower authentication credentials. in <script> at line number 82

Or

Exception during execution: javax.script.ScriptException: java.util.concurrent.RejectedExecutionException: java.util.concurrent.RejectedExecutionException: event executor terminated in <script> at line number 82

What is strange is that in Tower, the job starts well, runs well and ends well.

Another use case with the same scenario:

Exception during execution: javax.script.ScriptException: Exception: Failed with status pending in <script> at line number 82

In this case, I had to force the value of "monitor" to "True" instead of "task_vars['waitTillComplete']

Would there be a problem when Tower hands over to Release?

Regards,

Jeremy