Skip to main content

Django management Command that prevents simultaneous instances

Project description

django-highlander
=================

There can be only one!

This is a Django `manage.py` Command class for long running tasks stated from crontab.

This will assure there is only one instance running at any time, so crontab will not be able to start a second
instance unless the previous one finished.

How to use
----------

Just inherit from Highlander instead of BaseCommand:

from djangohighlander.command import Highlander

class Command(Highlander):
def handle(self, *args, **options):
...





Project details


Download files

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

Files for django-highlander, version 0.0.1.dev0
Filename, size File type Python version Upload date Hashes
Filename, size django_highlander-0.0.1.dev0-py2-none-any.whl (3.1 kB) File type Wheel Python version py2 Upload date Hashes View hashes
Filename, size django-highlander-0.0.1.dev0.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page