Work queue

On this page 7

A work queue is a centrally managed list of transaction items that software robots retrieve one at a time, process and mark with an outcome such as successful, failed or deferred. In RPA, the work queue separates collecting work from performing it, which allows several robots to share a workload, resume after failures and report exactly what happened to every item.

Each item typically represents one business case: an invoice, a customer request, an insurance claim or a row from a spreadsheet. The queue lives in the bot orchestrator, for example UiPath Orchestrator queues, Blue Prism work queues or Automation Anywhere workload management, and it is the main mechanism behind scalable unattended automation.

How a work queue operates in RPA

A work queue operates as a producer-consumer pattern: one process adds items, and one or more robots consume them. The orchestrator locks each item when a robot takes it, so two robots never process the same case, and it records timestamps, the robot name and the result.

  1. A dispatcher (producer) reads the source, such as an email inbox or a report, and adds one item per case with its data fields.
  2. A performer (consumer) requests the next available item, which the orchestrator marks as in progress.
  3. The performer completes the business steps in the target applications.
  4. It sets the item status to successful, or to failed with an exception type and reason.
  5. The orchestrator retries eligible failures automatically and exposes all results in reports.

Because the queue persists in the orchestrator database, a robot crash or a virtual machine restart does not lose work. An item left in progress beyond a time limit is typically abandoned by the platform and can be reviewed or requeued.

Item statuses and queue properties

Every queue item moves through a defined status lifecycle, and queue properties control how retries, priorities and deadlines behave. Exact names differ by vendor, but the concepts are consistent across major RPA platforms.

StatusMeaningNext step
NewAdded and waiting for a robotPicked up by the next performer
In progressLocked by one robotCompleted, failed or abandoned
SuccessfulBusiness case finished correctlyNo action; counts toward reporting
Failed: business exceptionData or rule problem in the caseRouted to a person, not retried
Failed: system exceptionTechnical error such as a timeoutRetried automatically up to the limit
AbandonedIn progress too long without resultInvestigated and requeued manually
Typical queue item statuses

The distinction between a business exception and a system exception is the most important design decision. Retrying a missing purchase order number will never succeed, while retrying after an application froze often will. The next table summarizes the settings most teams configure.

SettingWhat it controlsTypical value
Maximum retriesAutomatic attempts after system failure1 to 3
Unique referenceRejects duplicate items by keyInvoice or case number
PriorityOrder in which items are pickedHigh, normal or low
DeadlineLatest time for processingDriven by service level
Postpone dateEarliest time an item becomes availableUsed for follow-up checks
SLA targetAlerts when backlog risks latenessHours to one business day
Common work queue settings

Work queue compared with other ways to feed robots

A work queue is not the only way to give robots input, but it is the only common approach that provides item-level tracking, locking and retries out of the box. Simpler methods work for small, attended automations and become fragile as volume grows.

ApproachHow work is suppliedScalingTraceability
Orchestrator work queueItems stored centrally with statusMany robots in parallelFull per-item history
Shared spreadsheetRobot loops over rows in a fileOne robot at a timeLimited, file can be overwritten
Folder of filesRobot processes and moves filesRisk of collisionsBasic, based on folder moves
Message queueMiddleware such as RabbitMQ delivers messagesHigh throughputDepends on logging design
Direct triggerEvent starts one job per caseGood for low volumeJob logs only
Input approaches for software robots

Unlike a general message queue in integration middleware, an RPA work queue is designed for long-running, business-visible items that operations staff inspect, filter and requeue through a user interface.

Designing processes around a work queue

Good queue design starts with defining one item as one independent business transaction, so that a failure affects only that case. Reference frameworks such as the UiPath Robotic Enterprise Framework (REFramework) and Blue Prism’s standard templates are built around this get-next-item loop.

  • Separate the dispatcher and performer into different processes so collection and execution scale independently.
  • Store only the data needed to process the item, not entire documents; keep files in a secure share and pass a path.
  • Use a unique reference to prevent duplicates when the dispatcher reruns.
  • Add enough output data to each item for reporting, such as the amount posted or the document number created.
  • Assign more robots during peaks, since additional performers simply drain the same queue faster.

Common mistakes with work queues

Most work queue problems come from unclear exception handling and from storing sensitive data carelessly. Queue item contents are often visible to anyone with orchestrator access, so personal and financial data should be minimized or encrypted.

  • Marking business exceptions as system exceptions causes pointless retries; classify errors explicitly.
  • Batching many cases into one item means one error fails the whole batch; keep items granular.
  • Ignoring abandoned items leaves cases unprocessed; review them in daily monitoring.
  • Never purging old items bloats the database; apply a retention policy.

The idea in brief

A work queue is a to-do list shared by software robots. Each line on the list is one task, such as one invoice to enter. A robot takes the next free task, works on it and then marks it as done or as a problem.

It resembles the ticket system at a deli counter: everyone is served in order, nobody is served twice, and if a server steps away, the next one continues. Nothing gets lost, and managers can always see what is finished.

A practical scenario

An insurance company receives about 4,000 address change requests each month by email. A dispatcher robot runs every 30 minutes, reads new emails, extracts the policy number and new address, and adds one queue item per request, using the policy number plus date as a unique reference.

Three performer robots update the policy system in parallel. When the policy number does not exist, the item fails as a business exception and lands in a review list for a clerk; when the policy system times out, the item is retried automatically up to twice. During a seasonal peak, the operations team assigns two extra robots to the same queue. Average turnaround fell from three days to under four hours, and every request has a recorded status for audit.