This is the standard for async task queues in Python, and for good reason. It handles the whole distributed job workflow: broker setup with Redis or RabbitMQ, worker management, retries with exponential backoff, periodic scheduling, and task chaining. The progressive disclosure here walks through real broker configs, task routing patterns, and production concerns like monitoring and rate limiting. Use it when you need to offload email sending, report generation, or any long-running work that would block a web request. The overhead is real though. If you just need simple background jobs and don't care about distribution, RQ or even basic asyncio might be easier to reason about.

skills.sh installs
470
GitHub stars
79
last updated
Aug 21, 2026

Install

$ npx -y skills add bobmatnyc/claude-mpm-skills --skill celery --agent claude-code

Installs into .claude/skills of the current project.

Files

Celery: Distributed Task Queue

Summary

Celery is a distributed task queue system for Python that enables asynchronous execution of background jobs across multiple workers. It supports scheduling, retries, task workflows, and integrates seamlessly with Django, Flask, and FastAPI.

When to Use

  • Background Processing: Offload long-running operations (email, file processing, reports)
  • Scheduled Tasks: Cron-like periodic jobs (cleanup, backups, data sync)
  • Distributed Computing: Process tasks across multiple workers/servers
  • Async Workflows: Chain, group, and orchestrate complex task dependencies
  • Real-time Processing: Handle webhooks, notifications, data pipelines
  • Load Balancing: Distribute CPU-intensive work across workers

Don't Use When:

  • Simple async I/O (use asyncio instead)
  • Real-time request/response (use async web frameworks)
  • Sub-second latency required (use in-memory queues)
  • Minimal infrastructure (use simpler alternatives like RQ or Huey)

Quick Start

Installation

# Basic installation
pip install celery

# With Redis broker
pip install celery[redis]

# With RabbitMQ broker
pip install celery[amqp]

Sponsors

Details

Repository
github.com/bobmatnyc/claude-mpm-skills
Categories
Backend & APIs, Python
First seen
Jun 3, 2026

More from bobmatnyc/claude-mpm-skills

All 158
1auth0 avatarexpress-oauth2-jwt-bearerauth0/agent-skillsUse when protecting Express or Node.js API endpoints with JWT Bearer token validation, scope-based access control, or DPoP binding. Integrates express-oauth2-jw469skills.sh installs
2syncfusion avatarsyncfusion-blazor-datagridsyncfusion/blazor-ui-components-skillsImplements the Syncfusion Blazor DataGrid (SfGrid) for efficient tabular operations such as sorting, filtering, paging, grouping, editing, aggregates, virtualiz468skills.sh installs
3aj-geddes avatarsession-managementaj-geddes/useful-ai-promptsImplement secure session management systems with JWT tokens, session storage, token refresh, logout handling, and CSRF protection. Use when managing user authen466skills.sh installs
4aj-geddes avatarspring-boot-applicationaj-geddes/useful-ai-promptsBuild enterprise Spring Boot applications with annotations, dependency injection, data persistence, REST controllers, and security. Use when developing Spring a463skills.sh installs
5aj-geddes avatarserverless-architectureaj-geddes/useful-ai-promptsDesign and implement serverless applications using AWS Lambda, Azure Functions, and GCP Cloud Functions with event-driven patterns and orchestration.461skills.sh installs
6aj-geddes avatartransaction-managementaj-geddes/useful-ai-promptsManage database transactions for data consistency. Use when implementing ACID compliance, handling concurrency, or managing transaction isolation levels.461skills.sh installs