Working with queues

Hold a list of work items that processes take one at a time, with priorities, deadlines, retries, backlog alerts, bot pools and a worklist to manage them.

Help Centre › Orchestration

A queue holds work items waiting to be done, such as invoices to post or records to update. Instead of one big run that does everything, a process takes one item at a time. You get retries, priorities and a clear view of what is done and what is stuck.

1. Create a queue

  1. Go to Library › Queues and add a queue.
  2. Give it a Name.
  3. Set what you need:
    • Max retries (0–10) – how many times an item that failed for a technical reason is tried again.
    • Enforce unique references – refuse a second item with the same reference.
    • SLA (minutes) – how long an item may take from arriving to done before it is late.
    • At-risk window (minutes) – how long before the SLA an item is flagged as at risk.
    • Backlog alert (items) – send an alert when more than this many items are waiting. At most one alert every 6 hours.

Enter 0 to turn off the SLA, the at-risk window or the backlog alert.

2. Who works the queue

After saving, open the queue's settings again to choose how items are handed out:

  • Dispatch target
    • Pull (external workers) – whatever asks for the next item gets it, for example a process with a queue trigger, or your own code using the API.
    • Bot pool – while items are waiting, Automize starts workers on a pool by itself.
  • Bot pool – which pool works it.
  • Worker process – the process each worker runs. It gets the queue's id as the input queueID and should keep taking the next item until the queue is empty.
  • Max workers (1–20) – how many workers may run at once on the pool.
  • Environment – which environment the workers run in. Leave it on the default to use the worker process's environment, or else the company's.

You can also start a process for each item with a Queue item available trigger.

3. Add items

Click Add item on the queue's page, or let a process add them with the queue steps. Each item can have:

  • a reference, your own name for it, such as an invoice number;
  • a priority: High, Normal or Low;
  • a not before date, so it waits until then, and a deadline.

4. The queue page

An Automize work queue: supplier statements with priority, SLA state, and the reason the failed one failed.

The page shows the queue's health for the last 24 hours, then every item. Filter by status (Ready, Being worked, Postponed, Failed, Done, Cancelled), by deadline state (on time, at risk, late) or by failure type, and search by reference. Open an item to see every attempt at it.

Select items to act on them together:

  • Retry – put failed or cancelled items back in the queue.
  • Priority – change it to High, Normal or Low.
  • Postpone – hold them until a time you pick, or Make ready now.
  • Cancel – stop them being worked.

What failed, grouped by cause

The Failures section groups items that failed for good by their error message, ignoring numbers, so the same problem counts once. Each failure is marked as bad data, the automation failed, or the environment failed. Explain these failures asks AI to group them by cause in plain words, say what to do about each, and offer to retry the items a retry can fix. Numbers, email addresses and ids are hidden from the AI. This needs AI on your plan.

5. Queue variables

A queue can have its own variables, which replace the global ones while its items are worked. Use this when one process serves several queues with slightly different settings. A queue variable can be a secret that points at a stored credential.

6. Service levels

Admins can open the Service levels page to see every queue, mailbox, folder and timer that starts a process: what is waiting, how long the oldest item has waited, its SLA, and how much of the last week's work was done in time.

Related articles

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.