talira

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 APIplan not known
Has a command line toolplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Celery does.

  1. RQ Simple job queues for Python
  2. Temporal Durable execution platform for reliable workflows
  3. Oban Robust job processing in Elixir, backed by modern PostgreSQL, MySQL, and SQLite3
  4. Hatchet An orchestration engine for background tasks, AI agents, and durable workflows
  5. Hangfire Background jobs and workers for .NET, backed by persistent storage
  6. River Fast and reliable background jobs

Compare Celery with the top 3