queue add
Add a single website to the queue.Syntax
Arguments
string
required
Website URL to add to queue.
Options
string
default:"default"
Project name.
string
Custom instruction for processing this URL (e.g., “Focus on product pricing”).
integer
default:"5"
Priority level (higher = processed sooner). Range: 1-10.
Examples
Output
Duplicate Handling
Duplicates are detected by(project_name, website_url) combination and automatically skipped.
queue bulk
Bulk add URLs from CSV or JSON file.Syntax
Arguments
string
required
Path to CSV or JSON file containing URLs.
Options
string
default:"default"
Project name for all URLs.
integer
default:"5"
Default priority for all URLs (can be overridden per-row).
CSV Format
Requires aurl column. Optional: custom_instruction, priority.
JSON Format
Array of objects withurl field. Optional: custom_instruction, priority.
Examples
Output
queue list
List queue items with filtering.Syntax
Options
string
default:"default"
Project name.
string
Filter by status:
pending, processing, completed, failed.integer
default:"5"
Maximum items to show.
flag
Show all items including completed and failed (default shows only pending/processing).
flag
Show only the count, no details.
Examples
Output
queue next
Atomically claim the next pending item.Syntax
Options
string
default:"default"
Project name.
Behavior
Atomically claims the highest priority pending item and locks it for processing. PostgreSQL usesFOR UPDATE SKIP LOCKED (race-safe). SQLite uses conditional UPDATE.
Example
Output
Item Claimed
Empty Queue
queue complete
Mark an item as successfully completed.Syntax
Arguments
integer
required
Queue item ID.
Example
Output
queue fail
Mark an item as failed with error message.Syntax
Arguments
integer
required
Queue item ID.
Options
string
Error message explaining why processing failed.
Example
Output
queue retry
Reset a failed item to pending status.Syntax
Arguments
integer
required
Queue item ID.
Example
Output
Retry count is tracked but not enforced. You can retry items indefinitely.
queue remove
Remove an item from the queue.Syntax
Arguments
integer
required
Queue item ID.
Example
Output
queue cleanup
Bulk remove completed or failed items.Syntax
Options
string
default:"default"
Project name.
flag
Remove all completed items.
flag
Remove all failed items.
flag
Remove all completed and failed items.
flag
Skip confirmation prompt.
Examples
Output
Status Values
pending: Waiting to be processedprocessing: Currently being worked on (locked)completed: Successfully processedfailed: Processing failed with error
Parallel Processing
Process queue items with multiple workers:Next Steps
Crawl Commands
Process queue items with crawl commands
Database
Query and manage queue data