Skip to main content

A set of tools for django apps to persist and monitor the status of background tasks

Project description

django-bgtask

Background task monitoring tool for django apps

Installation

Grab it from PyPI, e.g:

pip install django-admin-background-task

Setup

Add it to your django apps:

INSTALLED_APPS = [
    ...
    "bgtask",
]

And mount the admin monitoring URLs:

urlpatterns = [
    # You should be able to mount them anywhere but I put them here
    path(r"admin/background-task/", include("bgtask.urls")),
    path("admin", admin.site.urls),
]

Usage

Creating a task and updating it

from bgtask.models import BackgroundTask

BackgroundTask.new(name)

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_admin_background_task-0.3.2.tar.gz (19.0 kB view hashes)

Uploaded Source

Built Distribution

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