Skip to main content

Leverage uWSGI spooler and cron in Django

Project description

Install

pip install django-call

Add djcall to INSTALLED_APPS and migrate.

Example project

Setup example project:

djcall-example collectstatic
djcall-example migrate
djcall-example createsuperuser

Run with runserver:

djcall-example runserver

Or with uWSGI:

uwsgi --env DJANGO_SETTINGS_MODULE=djcall_example.settings --env DEBUG=1 --spooler=/spooler/stat --spooler=/spooler/mail --spooler-processes 1 --http=:8000 --plugin=python --module=djcall_example.wsgi:application --honour-stdin --static-map /static=static

History

First made a dead simple pure python generic spooler for uwsgi: https://gist.github.com/jpic/d28333b0573c3c555fbe6e55862ecddb

The made a first implementation including CRUDLFA+ support: https://github.com/yourlabs/django-uwsgi-spooler

This version adds:

  • Cron model and support for uWSGI cron, can’t add/remove them without restart, but can change kwargs and options online

  • CRUDLA+ support is on hold waiting for what’s currently in https://github.com/tbinetruy/CHIP because i don’t want to build crud support here with templates because of the debt this will add, it’s time to use components in CRUDLFA+ to make the CRUD for Cron/Background tasks awesome

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

djcall-0.2.2.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file djcall-0.2.2.tar.gz.

File metadata

  • Download URL: djcall-0.2.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for djcall-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ce3369f111be28e3e52ff4d2619a04f750826b149b719452757b8e270cc6d2b3
MD5 8b81ae69bb947a8caf66e4c76d3cb0e7
BLAKE2b-256 81d0cd46cbc0e98ff5cca0c37cf138147d2c2a432f02ebb058bf4c039d815837

See more details on using hashes here.

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