kkpatel
(Kamal)
1
Hi All
Can you please give me a good explanation how the Deadline and Priority feature works in the Add Queue Item activity ?
I am not getting a clarity how it affects the execution of the queue items.
No deadline
Priority = High
Deadline = 12/25/2021
Priority = Low
Deadline = 12/26/2021
Priority = High
Deadline = 12/26/2021
Priority = Normal
Deadline = 12/27/2021
Priority = High
In which order the above items will execute ?
kkpatel
(Kamal)
2
No deadline
Priority = High
Deadline = 12/25/2021
Priority = Low
Deadline = 12/26/2021
Priority = High
Deadline = 12/26/2021
Priority = Normal
Deadline = 12/27/2021
Priority = High
1 Like
Hi @kkpatel,
First High Priority processes. If both high priority, then consider deadline.
First processes to last.
-
Deadline = 12/26/2021
Priority = High
-
Deadline = 12/27/2021
Priority = High
-
No deadline
Priority = High
-
Deadline = 12/26/2021
Priority = Normal
-
Deadline = 12/25/2021
Priority = Low
Regards.
Ömer
1 Like
Hi @kkpatel refer this video
Emira
(Emira Gasmi)
5
Hi @kkpatel
This is the algorithm used in Queues:
1- First: Transactions that HAVE a deadline (No matter what the deadline is): Order with priority
- If same priority, then Order by deadline value.
2- Second: Transactions without a deadline: order with priority:
- If same priority, then Order by First In First Out.
So this is the correct order:
Deadline = 12/26/2021
Priority = High
Deadline = 12/27/2021
Priority = High
Deadline = 12/26/2021
Priority = Normal
Deadline = 12/25/2021
Priority = Low
No deadline
Priority = High
Here is the Uipath Documentation:
About Queues and Transactions (uipath.com)
Hope that helps 
1 Like