Skip to main content

Django management Command that prevents simultaneous instances

Project description


There can be only one!

This is a Django `` 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.

Source Distribution

django-highlander-0.0.1.dev0.tar.gz (1.6 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page