I am trying to get queue items that are "stuck" and change their status to failed

I took what it retrieved (would eventually like to just get items that have been processing for 30 minutes or more) and tried to see what it came back with by using a for each loop utilizing a log message with item.tostring but it is not what I would expect to see. How do I list out the details of the items it brought back so I can see? Then I need to take the ones (via unique id number) and set them to failed so we don’t have to wait the 24 hour period for them to be abandoned.




to get the unique reference value of the queue item use item.Reference and TypeArgument in for each loop as UiPath.Core.QueueItem