Simple job queues for Python
open sourceBSD-2-Clause-FreeBSDself-hostablefree
RQ (Redis Queue) is a Python library for queueing jobs and processing them in the background with workers, backed by Redis (5 or later) or Valkey (7.2 or later). Any ordinary Python function can be enqueued, with no special decorators, and workers pick jobs off named queues. Jobs can be scheduled for a time or after a delay, repeated after success with fixed or varying intervals, and retried on failure with configurable back-off, and results and job status are stored in Redis. It is designed to have a low barrier to entry while scaling to high-volume applications, and fits into a web stack such as Django or Flask.
Problems it solves
- run slow tasks in the background from my Python web app
- a simpler job queue than Celery for a Django or Flask app
- retry failed background jobs automatically with back-off
- schedule a Python function to run at a later time
- process jobs with several worker processes backed by Redis
- repeat a job several times at set intervals
Features
- enqueue any Python function
- named queues and workers
- scheduled jobs (enqueue_at, enqueue_in)
- repeating jobs
- retries with configurable intervals
- job results and status stored in Redis
- Redis and Valkey support
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what RQ does.
- Celery Distributed task queue for Python, with real-time processing and scheduling
- BullMQ Message queue and batch processing for Node.js, Python, .NET, Elixir, Rust and PHP
- Faktory Language-agnostic background job server
- River Fast and reliable background jobs
- Upstash QStash Serverless HTTP messaging, queues and scheduling
- Oban Robust job processing in Elixir, backed by modern PostgreSQL, MySQL, and SQLite3