Metadata-Version: 2.1
Name: django-simple-queue
Version: 0.1.7
Summary: Django based app for Task queue manager using database as the broker.
Home-page: https://github.com/shubhamdipt/django-simple-queue
Author: Shubham Dipt
Author-email: shubham.dipt@gmail.com
License: MIT
Keywords: django,queue,task,manager
Platform: any
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE

# 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
)
````


