Then instead of using queue retry mechanism…you can have your own retry mechanism by adding a specific content with retry value…and when a system exception occurs then check if the retry number is greater than maximum number…if not add the queue item back and increase the retry number value by 1 and while adding make sure to set the priority to high…so that this item is picked up first …if max retry count is reached then do not add item to queue
Here the assumptiions is initially you have all queue items set to normal priority
thank you,
in this case though, going through the set transacition status xaml first, doesn’t it still create me an item in retried status and consequently twice the same item?
so I set the retry in the queue to zero and implement the add queue item in the system exception as shown by you, without making any changes to the set transaction status, correct?
So auto retry in queue will be zero…this mechanism will take care of retry and yes no change in set transaction status…it still does the same work as needed
Only this you need to make sure is when you are adding thw queue item for the first time then also you have to include retrynumber in your specific content and it should be set to 0 by default
Yes …when you are adding for the first time retrynumber will be 0…in the item collection you just need to add retrynumber on left and 0 as the value