Django based app for Task queue manager using database as the broker.
Project description
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_queue
to 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
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
File details
Details for the file django-simple-queue-0.1.8.tar.gz
.
File metadata
- Download URL: django-simple-queue-0.1.8.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0aeb7cc89cfb442525669f05955d467211b44b3c1158bb64091563b5868ad75 |
|
MD5 | 08d500b4f792eda011ed7199dd553410 |
|
BLAKE2b-256 | b9174c67f041a12182be0edf26138a422954476a506e3b912f88ba988afbbc2a |
File details
Details for the file django_simple_queue-0.1.8-py3-none-any.whl
.
File metadata
- Download URL: django_simple_queue-0.1.8-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697868aaf9f1b6ff030086b1bce1cfba1a5452ed3d45fffeaef254f4314de50a |
|
MD5 | 397684d04d9f0f1e56632f806058437c |
|
BLAKE2b-256 | 1b496d278f8d22a5c24f77c0dc4586a0b8950722e2e6a9ffc0fae9d72a1b3216 |