Celery
技能 已验证 活跃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.
To serve as a definitive guide for implementing and managing distributed task queues in Python applications using Celery.
功能
- 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)
使用场景
- 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
非目标
- Replacing simple asyncio for in-process async I/O
- Providing real-time request/response handling
- Serving as a solution for minimal infrastructure needs
工作流
- Install Celery and necessary dependencies.
- Configure the Celery application, including broker and backend.
- Define tasks using decorators or Task classes.
- Execute tasks asynchronously using `.delay()` or `.apply_async()`.
- Monitor task execution via workers, Flower, or inspection commands.
- Implement advanced features like periodic tasks, workflows, and error handling.
实践
- Task design
- Error handling
- Performance optimization
- Monitoring
- Security
先决条件
- Python environment
- Celery package (`pip install celery`)
- A message broker (e.g., Redis, RabbitMQ)
- An optional result backend (e.g., Redis, database)
安装
npx skills add bobmatnyc/claude-mpm-skills通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。
质量评分
已验证类似扩展
Python Best Practices
99Python/FastAPI coding standards including async patterns, Pydantic v2, SQLAlchemy 2.0, and project structure. Use when writing Python code, reviewing FastAPI projects, or learning FastAPI conventions.
Pydantic Validation
99Python data validation using type hints and runtime type checking with Pydantic v2's Rust-powered core for high-performance validation in FastAPI, Django, and configuration management.
Senior Fullstack
99Fullstack development toolkit with project scaffolding for Next.js, FastAPI, MERN, and Django stacks, code quality analysis with security and complexity scoring, and stack selection guidance. Use when the user asks to "scaffold a new project", "create a Next.js app", "set up FastAPI with React", "analyze code quality", "audit my codebase", "what stack should I use", "generate project boilerplate", or mentions fullstack development, project setup, or tech stack comparison.
API Security Review Skill
94API security checklist for reviewing endpoints before deployment. Use when creating or modifying API routes to ensure proper authentication, authorization, and input validation.
Sqlalchemy Orm
75SQLAlchemy Python SQL toolkit and ORM with powerful query builder, relationship mapping, and database migrations via Alembic
Csharp Async
100Get best practices for C# async programming