Queue Overview
RadarOS provides a queue system for running agents and workflows as background jobs. Use it when you need to process long-running tasks asynchronously, scale workers independently, or retry failed runs.Architecture
AgentQueue
Producer. Enqueue agent runs and workflows. Returns job IDs for status tracking.
AgentWorker
Consumer. Processes jobs from the queue using your agent and workflow registries.
Dependencies
Quick Start
Job Types
| Type | Enqueue Method | Payload |
|---|---|---|
| Agent | enqueueAgentRun() | agentName, input, sessionId?, userId? |
| Workflow | enqueueWorkflow() | workflowName, initialState?, sessionId? |
Job Lifecycle
Scaling
- Run multiple workers on different processes or machines. BullMQ distributes jobs across them.
- Use concurrency per worker to process several jobs in parallel.
- Use priority and delay for scheduling.