# Work Queues

Source: https://docs.autessa.com/docs/guide/work-queues

> Create, edit, watch, and delete the queues that run background work in order, with automatic retries.

# Work Queues

A work queue runs background work in order, with automatic retries, so long jobs never hold anyone up and nothing gets lost. Each item names the tool that does the work and the input it needs; the call that sends it returns right away, and the work runs later.

## Navigating here

Click **Build** on the rail, then **Work Queues** under **Run**. The page shows how many queues are running and paused, and the recently updated ones. **View all queues** opens the full list.

[Open Work Queues →](https://builder.autessa.com/work-queues)

Creating, editing, and viewing a queue all happen in a panel on the same screen.

## Key concepts

- **Items at once.** How many items may run at the same time. Leave it blank for no limit.
- **Tries per item.** An item that fails is tried again until it reaches this number, then set aside as stopped. The default is 3.
- **Time limit per try.** Under **Advanced**. A try that runs longer than this counts as failed. The default is 60 minutes.
- **Stage order.** Under **Advanced**, optional. Stage names in the order they should run; earlier stages run first.
- **Batches.** Work sent together shares a group key, so you can follow a batch's progress and retry or cancel it as a whole.
- **Item states.** **Waiting**, **Running**, **Done**, **Failed, will retry**, **Stopped**, and **Cancelled**.

## How to create a queue

1. On **Work Queues**, click **New queue**.
2. Enter a **Name**. Scripts find the queue by this name. Add a **Description** if you like.
3. Set **Items at once** and **Tries per item**, and anything under **Advanced**.
4. Click **Create queue**.

You can also create queues from a script with `workqueues.create`, or with the [Autessa CLI](/docs/cli/webhooks-and-queues.md#work-queues). Scripts send a queue work with `workqueues.enqueue`.

## How to edit or pause a queue

1. Open the queue from the list.
2. Click **Edit**, change its settings, and click **Save**.
3. To stop new items from starting, choose **More → Pause**. **Resume** starts them again.

## How to fix stuck work

1. Open the queue and enter the batch's **Group key** under **Batch progress**, then click **Look up**.
2. Click **Retry stopped items** to try failed items again, or **Cancel waiting items** to drop work that hasn't started. Canceling can't be undone.

## How to delete a queue

Only company admins (the owner, or anyone who manages team members) can delete a queue.

1. Open the queue and choose **More → Delete**, or use **Delete** in the list's row menu.
2. Click **Delete queue** to confirm.

The queue is removed from your queues, and scripts can no longer send it work. A queue with work waiting or running can't be deleted: pause it and cancel its work first.

## Related

- [Scheduled Jobs](/docs/guide/scheduled-jobs.md)
- [Tools](/docs/guide/agentic/tools.md)
- [Work Queues API](/docs/api/workqueues.md)
- [Webhooks and Queues in the CLI](/docs/cli/webhooks-and-queues.md)

