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.

Source Distribution

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

Uploaded Source

Built Distribution

django_highlander-0.0.1.dev0-py2-none-any.whl (3.1 kB view details)

Uploaded Python 2

File details

Details for the file django-highlander-0.0.1.dev0.tar.gz.

File metadata

File hashes

Hashes for django-highlander-0.0.1.dev0.tar.gz
Algorithm Hash digest
SHA256 4a56081084ec913e57c88640907f0372ab96c471878c9db7a6ad207f913eabdb
MD5 38d8982eb0c9b5f74206fed348047648
BLAKE2b-256 8da04ffccf46343b85eb28a935397bd5003f83a4713494363f607d9abcf2123d

See more details on using hashes here.

File details

Details for the file django_highlander-0.0.1.dev0-py2-none-any.whl.

File metadata

File hashes

Hashes for django_highlander-0.0.1.dev0-py2-none-any.whl
Algorithm Hash digest
SHA256 fc56cafe221d326c62bc18c67a7a76fb7579659a491481b6e8e84bf514c8e213
MD5 675115c4e2a2aabcf695f5f3328656f6
BLAKE2b-256 131ba9c2f3daab4b55954159f9a8669c83a5aee4c2d0c34c54e0e30e548cc489

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