awx icon indicating copy to clipboard operation
awx copied to clipboard

AWX CLI with --monitor set should return a different status code than 0 for a cancelled job

Open amolari opened this issue 2 years ago • 0 comments

Please confirm the following

  • [X] I agree to follow this project's code of conduct.
  • [X] I have checked the current issues for duplicates.
  • [X] I understand that AWX is open source software provided for free and that I might not receive a timely response.

Feature Summary

Hello,

At this time, looking at the code https://github.com/ansible/awx/blob/1ce82401923b573868a4aa8f58fef8615d30527b/awxkit/awxkit/cli/custom.py#L71-L74 only the failed/error returned status are taken into account for an exit status code != 0 Cancelling a job/workflow job on AWX returns a status "canceled", which should set an exit status code != 0, but probably not 1, to differenciate it from error/failed.

Select the relevant components

  • [ ] UI
  • [ ] API
  • [ ] Docs
  • [ ] Collection
  • [X] CLI
  • [ ] Other

amolari avatar Jul 21 '22 08:07 amolari