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.
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
- On Work Queues, click New queue.
- Enter a Name. Scripts find the queue by this name. Add a Description if you like.
- Set Items at once and Tries per item, and anything under Advanced.
- Click Create queue.
You can also create queues from a script with workqueues.create, or with the Autessa CLI. Scripts send a queue work with workqueues.enqueue.
How to edit or pause a queue
- Open the queue from the list.
- Click Edit, change its settings, and click Save.
- To stop new items from starting, choose More → Pause. Resume starts them again.
How to fix stuck work
- Open the queue and enter the batch's Group key under Batch progress, then click Look up.
- 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.
- Open the queue and choose More → Delete, or use Delete in the list's row menu.
- 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.