Skip to content
Django application to monitor and manage long and/or recurring tasks through uWSGI.
Python JavaScript HTML
Branch: master
Clone or download

Django uWSGI Taskmanager

Code style: black

Django application to manage async tasks via admin interface, using uWSGI spooler.


  • Start and stop your tasks via admin
  • Schedule tasks
  • Plan tasks as cron items
  • Check or download the generated reports/logs
  • Simply write a standard Django Command class (your app doesn't need to interact with Django uWSGI Taskmanager)


  1. Pip install the app:

    • via pypi:

      pip install django-uwsgi-taskmanager

    • or via github:

      pip install git+

  2. Add "taskmanager" to your INSTALLED_APPS setting like this:

        # ...
  3. Run python migrate to create the taskmanager tables.

  4. Run python collectcommands to create taskmanager commands.

  5. Include the taskmanager URLconf in your project like this (optional):

    from django.contrib import admin
    from django.urls import include, path
    urlpatterns = [
        path("taskmanager/", include("taskmanager.urls")),
  6. Set parameters in your settings file as below (optional):



You just need to install django-uwsgi-taskmanager in your Django Project and run collectcommands as described. Django uWSGI Taskmanager will collect all the commands and make them available for asynchronous scheduling in the admin.

If you need a new asynchronous task, just write a standard custom Django command, and synchronize the app. Then go to the admin page and schedule it.

You can disable some commands from the admin, and let users (with limited permissions) schedule only the available ones.

uWSGI ini file (vassal) has to include the spooler and pythonpath option.

NOTE: remember to manually create the spooler directory with right permissions before start uWSGI


This a basic Django demo project with a uwsgi.ini file and four directories (media, spooler, static, venv).

├── demo/
│   ├──
│   ├──
│   ├──
│   └──
├── media/
├── spooler/
├── static/
├── uwsgi.ini
└── venv/

This is the content of uwsgi.ini file required to execute the project with Django:

chdir = %d
env = DJANGO_SETTINGS_MODULE=demo.settings
http-socket = :8000
master = true
module = demo.wsgi
plugin = python3
pythonpath = %d
spooler = %dspooler
static-map = /static/=%dstatic
virtualenv = %dvenv

Try the demo project

Enter the demo directory, then create and activate the demo virtual environments:

$ cd demo
$ mkdir -p venv
$ python3 -m venv ./venv
$ source ./venv/bin/activate

Install Django uWSGI taskmanager:

(venv) $ pip install django-uwsgi-taskmanager

Install uWSGI (if you use uWSGI of your OS you can skip this step):

(venv) $ pip install uwsgi

Collect all static files:

(venv) $ python collectstatic

Create all the tables:

(venv) $ python migrate

Collect all commands:

(venv) $ python collectcommands

Create a super user to login the admin:

(venv) $ python createsuperuser

Start the project with uWSGI:

(venv) $ uwsgi --ini uwsgi.ini



Django uWSGI taskmanager is an application to manage async tasks via admin interface, using uWSGI spooler.

Copyright (C) 2019 Gabriele Giaccari, Gabriele Lucci, Guglielmo Celata, Paolo Melchiorre

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see

You can’t perform that action at this time.