Distributed task queue for Python, with real-time processing and scheduling
open sourceBSD-3-Clauseself-hostablefree
Celery is a Python task queue that distributes work across threads or machines: clients put task messages on a broker (RabbitMQ and Redis are feature complete, with Amazon SQS, Google Pub/Sub and others) and worker processes execute them. It supports periodic tasks with crontab schedules, workflows built from canvas primitives (chains, groups, chords), time and rate limits, retries, result backends (Redis, SQLAlchemy, Django ORM and more) and prefork, eventlet, gevent or solo concurrency. Workers emit monitoring events, and the protocol has clients for Node.js, PHP, Go and Rust.
Ways to install
Package managers
Problems it solves
- move slow work like sending emails out of the Django request
- a distributed task queue for Python using RabbitMQ or Redis
- run periodic tasks on a crontab schedule in a Python app
- chain tasks together and run a callback after a group of tasks finishes
- limit a task to 10 runs per minute so we don't hit an API's rate limit
- kill background tasks that run longer than a time limit
- workers slowly leak memory, so restart each one after a number of tasks
- run background tasks from a FastAPI or Flask app
- store task results so the web app can poll for them later
- spread CPU-heavy Python work across many machines
- a Python task queue on Amazon SQS
- enqueue tasks for Python workers from a Node.js or Go service
- retry failed jobs with backoff and see them in a dashboard
Features
- RabbitMQ, Redis, Amazon SQS and Google Pub/Sub transports
- periodic tasks with crontab schedules (celery beat)
- canvas workflows: chains, groups, chords, chunks
- time and rate limits
- retries
- result backends: Redis, AMQP, memcached, SQLAlchemy, Django ORM, Cassandra, Elasticsearch, Google Cloud Storage and more
- prefork, eventlet, gevent and solo pools
- --max-tasks-per-child leak protection
- monitoring event stream
- pickle, json, yaml and msgpack serialization, compression and message signing
View 1 more
- worker CLI
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Takes plugins | plan not known |
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Celery does.
- RQ Simple job queues for Python
- Temporal Durable execution platform for reliable workflows
- Oban Robust job processing in Elixir, backed by modern PostgreSQL, MySQL, and SQLite3
- Hatchet An orchestration engine for background tasks, AI agents, and durable workflows
- Hangfire Background jobs and workers for .NET, backed by persistent storage
- River Fast and reliable background jobs