huey: Queue and Schedule Python Tasks

Summary
Huey is a lightweight Python task queue for running background and scheduled work outside an application’s request flow. It suits Python projects that need task retries, scheduling, or multiple worker models with a choice of storage backends.
At a glance
- Language
- Python
- License
- MIT
- Stars
- 6k
- Forks
- 403
- Added to OSRepos
- February 17, 2026
- Last analyzed
- October 3, 2026
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
Huey lets Python applications enqueue functions for background execution and retrieve their results later. It addresses the need to move slow or scheduled work out of the main application flow without requiring a large task-queue framework.
It can use Redis, PostgreSQL, SQLite, filesystem, or in-memory storage, and supports Django integration. Workers can run as processes, threads, or greenlets, so the execution model can be chosen to suit the workload.
Key Features
- Enqueue Python functions using task decorators and receive a result handle.
- Schedule tasks for a later time or set them to run periodically.
- Retry failed tasks, with configurable retry counts and delays.
- Choose Redis, PostgreSQL, SQLite, filesystem, or in-memory storage.
- Run workers using processes, threads, or greenlets.
- Support task prioritization, result storage, expiration, locking, rate limits, and timeouts.
- Build task pipelines, chains, groups, and chords.
- Integrate with Django, including optional admin visibility and management.
Use Cases
- Python web application developers can move slow operations, such as backups or other time-consuming work, out of user-facing requests.
- Teams can run recurring maintenance jobs, such as scheduled synchronization, using periodic tasks.
- Applications that need to retry unreliable operations can configure automatic retries and delays.
- Django developers can use Huey for background jobs and optionally manage task information through Django admin.
- Projects with different infrastructure preferences can select a supported storage backend rather than relying solely on Redis.
Project Facts
- Language: Python
- License: MIT
- Stars: 6k
- Forks: 403
- Topics: dank, django, python, queue, redis, task-queue
- Archived: No
Getting Started
Run a consumer for your application’s Huey instance:
huey_consumer my_app.huey
See the README and documentation for setup, configuration, and examples.
Considerations
Huey requires a running consumer to execute queued work. Although the project describes itself as having zero dependencies, Redis-like brokers require redis-py and PostgreSQL requires psycopg. In-memory storage is available, but the appropriate backend depends on the application’s storage needs.
Source repository
Open the original repository on GitHub.
13 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

web-design: Create Consistent Web Pages with a Claude Code Skill
October 3, 2026
web-design is a Claude Code skill that turns product briefs, reference URLs, or screenshots into an editable design specification before generating web code. It is suited to developers and designers who want a repeatable, spec-led workflow for building consistent pages.

oomwoo: Build a DIY Robot Vacuum
October 2, 2026
OOMWOO is a planned, hackable robot vacuum built around Raspberry Pi, ROS2 and 2D LiDAR. It is aimed at makers who want to build and customize a locally controlled vacuum, but its hardware and build instructions are still in development.

shepherd: Supervise Agents with Reversible Execution Traces
October 2, 2026
Shepherd records agent work as inspectable, reversible execution traces and keeps changes as proposals for review. It is aimed at developers building systems that supervise, replay, or manage the work of other agents.

agent-anvil: Test AI Agent Tool Use in CI
October 1, 2026
Agent Anvil evaluates tool-using AI agents through scenario-based runs, trace checks, and optional semantic grading. It helps teams catch unsafe or incorrect tool behavior before it reaches production.