Celery
$ celery Official Med RiskCelery's CLI (celery -A <app>) manages Python worker pools, Beat schedulers, queue purging, and live cluster inspection. Supports -j / --json on celery inspect and celery control commands for structured JSON worker diagnostics.
pip install celery celery -A <app> inspect ... --json imports the local Python app config directly to query live workers.
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
celery inspect ... --json (-j) and celery control ... --json emit clean JSON, though running celery requires importing the user's Python -A app environment.
- Supports
-j/--jsonacrossinspectandcontrolsubcommands
celery purge prompts unless -f is passed, which prevents accidental drops in non-TTY scripts, though control revoke --terminate and purge -f are destructive.
purgeasks confirmation without-f; no--dry-run
Standard PyPI package (pip install celery), but requires the project's virtualenv and broker dependencies (redis, kombu, etc.) to inspect apps.
- Needs project Python virtualenv and broker drivers
Standard tool for inspecting active/reserved/scheduled tasks and worker stats across distributed Python queues.
- Remote worker inspection, rate limiting, and task revocation
Official celery/celery project under BSD-3-Clause with massive Python adoption.
- Official
celery/celeryrepository under BSD-3-Clause
Detailed CLI reference at docs.celeryq.dev, though inspect behavior depends on broker transport capabilities.
- CLI reference at docs.celeryq.dev
Security, Auth & Guardrails
Reads broker/backend URLs (CELERY_BROKER_URL, CELERY_RESULT_BACKEND) from the Python app module passed via -A <app> or --broker.
BSD-3-Clause open-source Python package; completely free.
# Celery CLI Agent Rules - Always pass `-A <app>` and `--json` (or `-j`) on `celery inspect` commands. - NEVER run `celery -A <app> purge` (even without `-f`) without explicit user approval—it deletes all queued tasks.
Agent-Ready Command Recipes
Safe Read-Only Queries
celery -A app inspect active --json
Queries online workers over the broker and prints active task payloads in JSON.
celery -A app inspect ping --json
Verifies which Celery worker nodes are alive and responsive in JSON format.
Controlled Writes & Previews
celery -A app control revoke <task-id>
Cancels a pending task without terminating running workers (omit --terminate unless needed).
Strengths for Agents
- +
--json(-j) oninspect active,stats,reserved, andpinggives structured worker telemetry. - + Queries live distributed workers directly through the existing broker (Redis/RabbitMQ).
- + Interactive confirmation protects
celery purgeunless-fis explicitly supplied.
Caveats & Pitfalls
- ! Requires activating the project's Python environment so
-A <app>can import application code. - !
celery workerandcelery beatare blocking daemon processes.