django-tasks
A backport of Django's built in Tasks framework
Decision gist · record as of 2026-08-14
Yes. django-tasks is actively maintained, has no known vulnerabilities, and provides a lightweight, Django-native way to handle background tasks. Install it if you need basic task queueing without external infrastructure; the low install friction and permissive license make it a straightforward addition. Consider it especially if you're already committed to Django and want to avoid pulling in a separate task queue system.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later and Django 4.2+.
- Must add django_tasks to INSTALLED_APPS and configure a backend (defaults to ImmediateBackend if omitted).
- Low install friction; pure Python wheel.
License · maintenance · safety
BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-02-06 (189 days) · last repo commit 2026-05-22 · 810 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 858,580 downloads/mo, #4,880 on PyPI
Alternatives
Verify before relying
pip install django-tasks
# In settings.py
INSTALLED_APPS = ["django_tasks"]
# In your code
from django_tasks import task
@task()
def my_task():
return 42
result = my_task.enqueue()
print(result.return_value)- Whether the included ImmediateBackend and DummyBackend are sufficient for production use or if external backends (django-tasks-db, django-tasks-rq) are typically required.
- Performance characteristics and scalability limits of the default backend under typical workloads.
- Whether task result persistence and retrieval work across process boundaries with the default configuration.
What it is and what it does
django-tasks is a backport of Django's native Tasks framework, letting you define and execute background tasks within a Django application. You decorate functions with @task(), enqueue them on demand, and get back a TaskResult object to track status and retrieve return values. The framework abstracts the execution layer behind pluggable backends—by default it runs tasks immediately in the current thread, but you can swap in other backends for deferred or distributed execution.
The package is designed to integrate seamlessly with Django's configuration and signals system. You can customize tasks with priority levels, queue names, and delayed execution times; retrieve results later by ID; and introspect backend capabilities at runtime to gracefully degrade if a feature isn't supported. It's a lightweight alternative to external task queues when you need basic async task support without additional infrastructure.
Use it for
- Offload long-running operations (reports, data processing) from request handlers to avoid blocking responses.
- Schedule tasks to run at specific times or with custom priority levels using the priority and run_after parameters.
- Test task logic in isolation using the DummyBackend without actually executing tasks during test runs.
- Track task execution status and retrieve results asynchronously across different parts of your application.
- Swap task backends (immediate, database, RQ) without changing task definitions by reconfiguring the TASKS setting.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
django-tasks is actively maintained, has no known vulnerabilities, and provides a lightweight, Django-native way to handle background tasks. Install it if you need basic task queueing without external infrastructure; the low install friction and permissive license make it a straightforward addition. Consider it especially if you're already committed to Django and want to avoid pulling in a separate task queue system.
Install
django-tasks on PyPI
Before you install
Low install friction; pure Python wheel. Actively maintained with recent commits and a stable release cadence. Requires Django and typing_extensions as runtime dependencies.
Requires Python 3.10 or later and Django 4.2+. Must add django_tasks to INSTALLED_APPS and configure a backend (defaults to ImmediateBackend if omitted).
License in practice
BSD-3-Clause is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install django-tasks
# In settings.py
INSTALLED_APPS = ["django_tasks"]
# In your code
from django_tasks import task
@task()
def my_task():
return 42
result = my_task.enqueue()
print(result.return_value)
Verify before relying
- Whether the included ImmediateBackend and DummyBackend are sufficient for production use or if external backends (django-tasks-db, django-tasks-rq) are typically required.
- Performance characteristics and scalability limits of the default backend under typical workloads.
- Whether task result persistence and retrieval work across process boundaries with the default configuration.
Package facts
| License | BSD-3-Clause permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesDjangotyping_extensionsdjango-stubs-ext |
| Maintenance | Actively maintained 189 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 858,580 / month, #4,880 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTopic :: Internet :: WWW/HTTPTyping :: Typed |
Evidence: django_tasks-0.12.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “async task execution django”
- django-tasksProvides a backport of Django's built-in Tasks framework, enabling…
- django-background-tasksDjango Background Tasks is a database-backed task queue for Django…
- django-q2Django Q2 is a multiprocessing distributed task queue for Django that…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also django-tasks-db · django-rq · django-q2 · django-dramatiq · django-background-tasks · pgqueuer · dvc-task · gcloud-rest-taskqueue · aa-taskmonitor