Django simple queue
It is a very simple app which uses database for managing the task queue.
Installation
pip install django-simple-queue
Set up
- Add
django_simple_queueto INSTALLED_APPS in settings.py - Add the following to urls.py in the main project directory.
path('django_simple_queue/', include('django_simple_queue.urls')),
- Apply the database migrations
Usage
Start the worker process as follows:
python manage.py task_worker
Use from django_simple_queue.utils import create_task for creating new tasks.
e.g.
create_task(
task="full_path_of_function",
args={"arg1": 1, "arg2": 2} # Should be a dict object
)
The task queue can be viewed at /django_simple_queue/task
Metadata
Release files for django-simple-queue 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-simple-queue-0.1.10.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_simple_queue-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.7 kB
Release files / django-simple-queue-0.1.10.tar.gz
| Download URL | django-simple-queue-0.1.10.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60f759995f73bb9fb73b37d94b4466adfcc402fb61c3f10b8f2d104dc3ce6842
|
|
BLAKE2b-256 checksum How to use checksums |
3b681755fdb221178e3b42ce37b4ec110315b7157eeb50312563ba7502d85315
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.6
|
Release files / django_simple_queue-0.1.10-py3-none-any.whl
| Download URL | django_simple_queue-0.1.10-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
048172b935b7b29997fb89508fa21d445373a0450372eb0ca8b307431dfd2faf
|
|
BLAKE2b-256 checksum How to use checksums |
3e329e5e157aaf476e77cce121ec067e6797b5b66138057681a5993e1df0376e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.6
|