huey: Queue and Schedule Python Tasks

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
View on GitHub

Topics

Click on any tag to explore related repositories

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

View on GitHub

Related repositories

Similar repositories that may be relevant next.

OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️