Queues
Project queues, acquire/release in task templates, priority, and the org __System agent gate.
Queues
Queues bound how much automated work runs at once. ArxDeck has two layers:
- Project queues — named queues that serialize or limit task-template steps per project (for example, one agent pipeline at a time per repository or environment).
- __System — an automatic org-wide gate on how many agents and chat turns may execute at the same time.
Project queues
A queue is identified by its name within a project. Any workflow, automation, or template that references the same name shares the same queue — the same name used in two workflows is one queue, not two.
Each queue has a max concurrency (default 1) edited under Project → Settings → Queues, where project admins can also add queues manually. A queue row appears after its first use at runtime or a manual add.
Acquire and release in task templates
Queue slots are acquired and released explicitly inside task templates:
- Acquire project queue — wait for a free slot (blocks when the queue is at max concurrency)
- Run your pipeline steps (agents, status changes, nested tasks, etc.)
- Release project queue — free the slot for the next waiting run
Each acquire step has two settings:
- Priority — Low / Medium / High / Critical (default Medium). Waiting runs are served highest priority first, then oldest first.
- Hold queue slot while waiting for input — on by default. When off, the slot is freed while an agent on the run waits for user input, and re-acquired when the run resumes (waiting again if the slot was taken).
If a parent run already holds a lease, a child template's acquire/release for the same queue is a no-op.
Leases are released automatically when a run completes, fails, or is cancelled.
__System: org agent gate
Every agent launch and chat turn in an organization passes an automatic org-level gate — no template wiring needed. It counts all providers (OpenRouter, Local, Cursor Cloud, Claude) while they execute.
- Max agents caps all concurrent agent and chat activity for the org (set by the platform operator per org).
- Max background agents caps the background subset. Org admins can lower it under Settings → Agent concurrency, never raise it above the plan.
When capacity is full, launches are scheduled and start when a spot opens. They are not failed, and chat does not time out while it is waiting. Nothing is preempted or killed. Foreground work always runs before background work; within the same mode, higher priority and then older launches go first.
Mode and priority
Run agent steps (in templates, automations, scheduled tasks, intake, and webhooks) expose:
- Mode — Same as the task (recommended, default) inherits the task's mode. Always background waits when agents are busy — good for pipelines and bulk work. Always foreground jumps ahead of background work — for urgent, user-facing requests.
- Priority — Low / Medium / High / Critical (default Medium).
Tasks default to background; scheduled tasks, intake settings, and webhook tasks let admins switch the whole task to foreground. Some launches have fixed modes: chat, @mentions, and manual template play are always foreground; retries and replies continue in the mode of the run they continue.
When an agent waits for user input, its __System slot is freed so paid capacity is never idle; on your answer it re-joins the queue in its original mode and priority.
Queues sidebar view
Open Queues in the project sidebar (/projects/[id]/queues) to see:
- The __System panel — org-wide agent capacity totals plus every waiting agent, with its origin (ticket / task / chat), mode, priority, and wait time.
- One panel per project queue with the active run and waiting runs.
Users with ticket manage permission can:
- Reorder waiting runs and waiting agents
- Remove (cancel) waiting runs and waiting agents
Viewers and members without manage permission can inspect queue state but cannot reorder or cancel.
When to use queues
Use project queues when parallel automated jobs would conflict — shared environments, rate limits, or single-writer resources. For independent work, skip acquire/release and let runs proceed in parallel. Use the __System settings to cap total org spend; you rarely need to think about it beyond choosing a sensible mode per step.
Runnable agents and other immediate launches do not take a project queue unless the template acquires one. For queued pipelines, use a Run task automation with a template that acquires and releases a project queue by name.
