Is it possible to get or delete items in the Queue with status InProgress?

queue

#1

I have a queue of items with status “InProgress”. Do I have to delete the entire queue in order to get those items?
If not, how do I get or delete them?


InProcess queue locked
#2

Why would you want to delete them?
And how did they get to InProgress status?


#3

Well, in reality I want to process them. I was just thinking that if the program threw an exception and I didn’t manually update the status, then they would forever be kept in the InProgress status.


#4

They will be moved in Failed, Retried (if AutoRetry is On) or Abandoned(after n retries). For all these you will be able to manually retry too.

But you need to implement a Try-Catch mechanism and use SetTransactionStatus(Failed) on Catch while working with queues.

Doing this will assure that you’ll have false InProgress items only in case of network failure between the robot and the server.


#5

Yeah ok. So in my case where some items have status “InProgress”, I will have to delete the entire queue as I can no longer acquire those items?


#6

You can also leave them and ad new ones containing the same data. They will become Abandoned in 24 hours and you’ll be able to delete.


#7

Okay, thanks!