Registry /
web-framework / django-background-tasks
Install & Compatibility
Where this runs
tested against v1.2.8 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 66.6MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.4s · import 0.000s · 67MB
66MB installed
● package 66MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
background
✓ from background_task import background
✗ from background_task import background_task
default_app_config
✓ from background_task import default_app_config
Define a task using the decorator and run the worker.
# models.py
def print_hello():
from background_task import background_task
@background_task(schedule=10)
def hello(name):
print("Hello %s" % name)
hello("World", schedule=10)
# run: python manage.py process_tasks
Upgrade
Version history
1.2.8latest on PyPI · released Aug 16, 2024
Audit
Dependencies
DjangorequiredRequired; compatible with Django 1.8+ to 3.x