Hi,
We need to find the list of failed jobs in the last one hour through the AWX API.
We have tried multiple combinations and always get a list of all the failed jobs.
Has anyone tried this and have any examples to share?
Thanks
Hi,
We need to find the list of failed jobs in the last one hour through the AWX API.
We have tried multiple combinations and always get a list of all the failed jobs.
Has anyone tried this and have any examples to share?
Thanks
Have you tried a query like this: https://localhost:8043/api/v2/jobs/?finished__gt=2022-10-26T17:02:09.833133Z&status=failed
Granted you will need to do a calculation to get now - 1h but that filter should get failed jobs since the timestamp.
Let us know if that works or not.
-The AWX Team