Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Celery

Skill Verifiziert Aktiv

Distributed task queue system for Python enabling asynchronous execution of background jobs, scheduled tasks, and workflows across multiple workers with Django, Flask, and FastAPI integration.

Zweck

To serve as a definitive guide for implementing and managing distributed task queues in Python applications using Celery.

Funktionen

  • Distributed task execution and scheduling
  • Asynchronous background job processing
  • Complex task workflows and orchestration
  • Robust error handling with retries and backoff
  • Integration with Python web frameworks (Django, Flask, FastAPI)

Anwendungsfälle

  • Offloading long-running operations like email sending or report generation
  • Implementing scheduled tasks similar to cron jobs
  • Distributing computation across multiple worker nodes
  • Building complex asynchronous workflows with task dependencies

Nicht-Ziele

  • Replacing simple asyncio for in-process async I/O
  • Providing real-time request/response handling
  • Serving as a solution for minimal infrastructure needs

Workflow

  1. Install Celery and necessary dependencies.
  2. Configure the Celery application, including broker and backend.
  3. Define tasks using decorators or Task classes.
  4. Execute tasks asynchronously using `.delay()` or `.apply_async()`.
  5. Monitor task execution via workers, Flower, or inspection commands.
  6. Implement advanced features like periodic tasks, workflows, and error handling.

Praktiken

  • Task design
  • Error handling
  • Performance optimization
  • Monitoring
  • Security

Voraussetzungen

  • Python environment
  • Celery package (`pip install celery`)
  • A message broker (e.g., Redis, RabbitMQ)
  • An optional result backend (e.g., Redis, database)

Installation

npx skills add bobmatnyc/claude-mpm-skills

Führt das Vercel skills CLI (skills.sh) via npx aus — benötigt Node.js lokal und mindestens einen installierten skills-kompatiblen Agent (Claude Code, Cursor, Codex, …). Setzt voraus, dass das Repo dem agentskills.io-Format folgt.

Qualitätspunktzahl

Verifiziert
98 /100
Analysiert 1 day ago

Vertrauenssignale

Letzter Commit29 days ago
Sterne44
LizenzMIT
Status
Quellcode ansehen