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

Celery

$ celery Official Med Risk
Celery Project · Database & Data · BSD-3-Clause · macos / linux / windows

Celery'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.

FCRS-1.0 Score
76 /100
Good
Medium Confidence
Zero-Friction Install
pip install celery
CLI vs MCP Decision CLI Preferred vs MCP

celery -A <app> inspect ... --json imports the local Python app config directly to query live workers.

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 19 / 25

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 / --json across inspect and control subcommands
Trust & Safety 18 / 25

celery purge prompts unless -f is passed, which prevents accidental drops in non-TTY scripts, though control revoke --terminate and purge -f are destructive.

  • purge asks confirmation without -f; no --dry-run
Setup & Portability 12 / 15

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
Utility & Efficiency 12 / 15

Standard tool for inspecting active/reserved/scheduled tasks and worker stats across distributed Python queues.

  • Remote worker inspection, rate limiting, and task revocation
Maintenance & Lineage 8 / 10

Official celery/celery project under BSD-3-Clause with massive Python adoption.

  • Official celery/celery repository under BSD-3-Clause
Docs & Verifiability 7 / 10

Detailed CLI reference at docs.celeryq.dev, though inspect behavior depends on broker transport capabilities.

  • CLI reference at docs.celeryq.dev

Security, Auth & Guardrails

Auth Modes
Config File Env API Key
Credential Storage

Reads broker/backend URLs (CELERY_BROKER_URL, CELERY_RESULT_BACKEND) from the Python app module passed via -A <app> or --broker.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect active running tasks as JSON
celery -A app inspect active --json

Queries online workers over the broker and prints active task payloads in JSON.

Check registered task names and worker ping
celery -A app inspect ping --json

Verifies which Celery worker nodes are alive and responsive in JSON format.

Controlled Writes & Previews

Revoke a specific queued task by ID
celery -A app control revoke <task-id>

Cancels a pending task without terminating running workers (omit --terminate unless needed).

Strengths for Agents

  • + --json (-j) on inspect active, stats, reserved, and ping gives structured worker telemetry.
  • + Queries live distributed workers directly through the existing broker (Redis/RabbitMQ).
  • + Interactive confirmation protects celery purge unless -f is explicitly supplied.

Caveats & Pitfalls

  • ! Requires activating the project's Python environment so -A <app> can import application code.
  • ! celery worker and celery beat are blocking daemon processes.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI