Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-simple-queue-0.1.7.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

django_simple_queue-0.1.7-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page