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
Close
Hashes for django-simple-queue-0.1.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0aeb7cc89cfb442525669f05955d467211b44b3c1158bb64091563b5868ad75 |
|
MD5 | 08d500b4f792eda011ed7199dd553410 |
|
BLAKE2b-256 | b9174c67f041a12182be0edf26138a422954476a506e3b912f88ba988afbbc2a |
Close
Hashes for django_simple_queue-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 697868aaf9f1b6ff030086b1bce1cfba1a5452ed3d45fffeaef254f4314de50a |
|
MD5 | 397684d04d9f0f1e56632f806058437c |
|
BLAKE2b-256 | 1b496d278f8d22a5c24f77c0dc4586a0b8950722e2e6a9ffc0fae9d72a1b3216 |