RQ (Redis Queue)
$ rq Official Med RiskRQ (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).
pip install rq rq worker --burst imports local Python task modules directly from the repo to drain queued jobs.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
rq worker --burst exits cleanly after draining queues, but rq info outputs human-readable text bars/tables with no native --json flag.
rq infolacks native--jsonoutputrq worker --burstenables finite batch runs
Simple Redis-scoped CLI with --burst safety, though rq empty deletes all queued jobs immediately without --dry-run.
rq emptypermanently clears queues without--dry-run
Pure Python package (pip install rq), though executing jobs requires the project's virtualenv and Redis/Valkey connectivity.
- Lightweight
pip install rqacross macOS, Linux, and Windows
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, andemptywith minimal config
Actively maintained rq/rq OSS project under BSD-2-Clause license.
- Official
rq/rqGitHub repository
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
Reads --url / REDIS_URL, -c Python settings module, or -H/-p Redis host flags.
BSD-2-Clause open-source Python package; completely free.
# 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
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
rq worker --burst default
Processes all currently queued jobs on default and exits cleanly once empty.
Strengths for Agents
- +
rq worker --burstprocesses queued jobs and exits automatically—ideal for cron and CI tests. - + Minimal operational overhead requiring only Redis or Valkey.
- +
rq requeue --allprovides quick recovery forFailedJobRegistryentries.
Caveats & Pitfalls
- !
rq infohas no native--jsonoutput flag—agents must parse ASCII table/bar text or use Python API. - !
rq emptyimmediately drops queued jobs without confirmation or dry-run.