Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

RQ (Redis Queue)

$ rq Official Med Risk
RQ (OSS) · Database & Data · BSD-2-Clause · macos / linux / windows

RQ (rq) provides a simple Python job queue backed by Redis or Valkey without complex broker setup. Its CLI handles queue inspection (rq info), burst batch workers (rq worker --burst), failed job retries (rq requeue), and queue clearing (rq empty).

FCRS-1.0 Score
68 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
pip install rq
CLI vs MCP Decision CLI Preferred vs MCP

rq worker --burst imports local Python task modules directly from the repo to drain queued jobs.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

rq worker --burst exits cleanly after draining queues, but rq info outputs human-readable text bars/tables with no native --json flag.

  • rq info lacks native --json output
  • rq worker --burst enables finite batch runs
Trust & Safety 19 / 25

Simple Redis-scoped CLI with --burst safety, though rq empty deletes all queued jobs immediately without --dry-run.

  • rq empty permanently clears queues without --dry-run
Setup & Portability 12 / 15

Pure Python package (pip install rq), though executing jobs requires the project's virtualenv and Redis/Valkey connectivity.

  • Lightweight pip install rq across macOS, Linux, and Windows
Utility & Efficiency 10 / 15

Great simplicity for Python/Redis queues, though monitoring automation often falls back to Python Queue scripts or rq-dashboard due to missing JSON output.

  • Covers info, worker, requeue, and empty with minimal config
Maintenance & Lineage 7 / 10

Actively maintained rq/rq OSS project under BSD-2-Clause license.

  • Official rq/rq GitHub repository
Docs & Verifiability 5 / 10

Basic CLI flags documented across python-rq.org/docs/ pages, though --help is sparse compared to Cobra/Click CLIs.

  • Docs distributed across python-rq.org/docs/ sections

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Reads --url / REDIS_URL, -c Python settings module, or -H/-p Redis host flags.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

BSD-2-Clause open-source Python package; completely free.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# RQ CLI Agent Rules
- Pass `--interval 0` (or avoid polling) on `rq info` and prefer `--burst` on `rq worker` so commands exit cleanly.
- Never run `rq empty` on production queues without explicit user confirmation.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect queue depths and active workers once
rq info --interval 0 --by-queue

Prints a single snapshot of queues, job counts, and workers (pass --interval 0 to avoid continuous polling).

Controlled Writes & Previews

Drain queued jobs in burst mode and exit
rq worker --burst default

Processes all currently queued jobs on default and exits cleanly once empty.

Strengths for Agents

  • + rq worker --burst processes queued jobs and exits automatically—ideal for cron and CI tests.
  • + Minimal operational overhead requiring only Redis or Valkey.
  • + rq requeue --all provides quick recovery for FailedJobRegistry entries.

Caveats & Pitfalls

  • ! rq info has no native --json output flag—agents must parse ASCII table/bar text or use Python API.
  • ! rq empty immediately drops queued jobs without confirmation or dry-run.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI