Deadline and Priority feature in Add Queue Item

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 ?

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.

  1. Deadline = 12/26/2021
    Priority = High

  2. Deadline = 12/27/2021
    Priority = High

  3. No deadline
    Priority = High

  4. Deadline = 12/26/2021
    Priority = Normal

  5. Deadline = 12/25/2021
    Priority = Low

Regards.
Ömer

1 Like

Hi @kkpatel refer this video

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 :slight_smile:

1 Like