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
)
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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a4c2d49fc1102c9a1d777d3a17d46fff49069e5aab59a30064c9afaff7abafb |
|
MD5 | 9602e902ed253fce1b5bdaa7850688a7 |
|
BLAKE2b-256 | 5d18b52f5a82fe5622405dc801ece363bba65b781cb9d6318836e45f94cf2e06 |
Close
Hashes for django_simple_queue-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd1a7d7d32bab0d0b74de98db2c9e91bbefa3a919adb40eef8814b81dc96228e |
|
MD5 | ac726fcc9727b7e85f06f66b6dd09e82 |
|
BLAKE2b-256 | 2fd9ac0e4ebb99943375b7c63f6a3a71a285cc55990d5678c1cfb97f7162205a |