Queues - stop and continue

Hi,
I upload input data to queue. In REFRamework, I get data from the queue and read each queue item and process it. If the process is stopped in the middle, what is the best way to save the current status and resume from data where it is left off.

Thank you,

Hi @A_Learner

Automatically the processed queue items will not take by the bot. The Queue item which has New Status then only it will get to code and processed.

when you run the bot for next time the New status queue items only processed.

No need to get the current status and at which queue item the job stopped.

Hope it helps!!

You don’t stop and then resume where you left off. You set the queue item to failed. If you want to retry application exceptions then you set a retry on the queue itself.

You could use multiple queues, but that could become a bit messy. I’ve handled it by storing the current status by using “Set Progress” activity.

When you need to “stop” processing an item, per your condition, you could use the “Postpone transaction item” activity to change the queue item’s status to New. When you later get it again from the queue, use transactionItem.Progress to get the status stored in the Progress field. You can then skip the steps thar you have already processed for the item.