Queue System
The Queue System manages the execution of automation projects.
How It Works
Section titled “How It Works”- When you run a project, a queue record is created with status
pending. - The queue processor picks up the record and starts execution.
- The status changes to
running. - When execution completes, the status changes to
completed,failed, orstopped.
Queue Statuses
Section titled “Queue Statuses”| Status | Description |
|---|---|
pending |
Waiting to start |
running |
Currently executing |
completed |
Finished successfully |
failed |
Finished with errors |
stopped |
Manually stopped by the user |
killed |
Force-killed |
Queue Record Fields
Section titled “Queue Record Fields”| Field | Description |
|---|---|
type |
project_run or relay_run |
status |
Current status |
args |
Command-line arguments for the execution engine |
project |
Associated project ID |
session |
Associated session ID |
chat |
Associated chat ID (if triggered from AI chat) |
owner |
Owner profile ID |
scheduler |
Associated scheduler ID (if scheduled) |
checkpoint |
Checkpoint data for resume |
variables |
Runtime variables |
Monitoring the Queue
Section titled “Monitoring the Queue”The queue is monitored in real-time via PocketBase subscriptions. The Project Runs page shows the current status of all executions.
Stopping a Running Project
Section titled “Stopping a Running Project”- Go to Automation Projects.
- Select the running project.
- Click Run (which opens the Live Monitor).
- Click Stop Project.
- The queue record status changes to
stopped.
Relay Runs
Section titled “Relay Runs”When a project has triggers configured, a separate relay run is created after the main execution completes. The relay run processes the triggers sequentially.