Inventory Pending Delete (AWX 9.3.0)

Hi all,

We’re on an older version of AWX at this point (9.3.0), an upgrade is planned but not an immediate priority.

I’ve been trying to delete an inventory where single hosts fail to delete (timing out when pressing delete button, or 504 from API calls). The inventory is now stuck in a “Pending delete” state and has been for about an hour. I know the process can take a while, but I don’t see any indications from database queries or background tasks on the AWX task container that anything is actually happening.

I’ve tried using Shell Plus to break out of the pending state and retrying the delete, unfortunately it still seems to be stuck.

Is there any way to confirm that the deletion is actually happening? Or a more surefire way to delete the inventory from this state?

Thanks,
Susan Tang

Wanted to update this thread, I let the delete_inventory run for a couple hours, but the inventory was still hanging around as “Pending delete” in the UI. I gave the shell_plus command another try after this length of time, it ran for about 2 minutes and then the inventory was deleted successfully from the UI.

The shell_plus command for those who stumble on this thread:
Inventory.objects.filter(pending_deletion=True).update(pending_deletion=False)