Zero-infrastructure task backends for Django 6 (thread pool and process pool)
Project description
django-tasks-local
Zero-infrastructure task backends for Django 6.
Django 6 ships with ImmediateBackend (blocks the request) and DummyBackend (does nothing). This package provides background execution with zero infrastructure:
- ThreadPoolBackend - I/O-bound tasks (emails, API calls, database)
- ProcessPoolBackend - CPU-bound tasks (image processing, data analysis)
No Redis, Celery, or database required.
Installation
pip install django-tasks-local
Quick Start
# settings.py
TASKS = {
"default": {"BACKEND": "django_tasks_local.ThreadPoolBackend"},
}
from django.tasks import task
@task
def send_welcome_email(user_id):
...
send_welcome_email.enqueue(user.id)
Documentation
- Usage Guide - Configuration, multiple backends, retrieving results
- API Reference - Backend capabilities and methods
- Gotchas - Limitations and edge cases
Limitations
- In-memory only - Results lost on restart
- No scheduling -
supports_defer = False - No priority - FIFO execution
For persistence, see django-tasks which provides DatabaseBackend and RQBackend.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_tasks_local-2.0.tar.gz.
File metadata
- Download URL: django_tasks_local-2.0.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23e7df79a4766cbb0a76d87a2b844ab4798fb5c22880454a0fcb6acd73c50869
|
|
| MD5 |
7ddd7308f190696357ad2f6ceeea6f0e
|
|
| BLAKE2b-256 |
e42a35904b6a673f9e865d929d338d958c5263822a4bb021a29faf601b3a24b1
|
File details
Details for the file django_tasks_local-2.0-py3-none-any.whl.
File metadata
- Download URL: django_tasks_local-2.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ce8f5e39d449993c77d1db964b470601002d69c8bf01c4997cfa4d625feda0
|
|
| MD5 |
02617ece089c941c60a11c28951bf5fe
|
|
| BLAKE2b-256 |
c1a4b8031fad49e863ca6bcab81489d67538a61b0993402f9eccf9c2799ad7d3
|