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):
...
=================
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-highlander-0.0.1.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a56081084ec913e57c88640907f0372ab96c471878c9db7a6ad207f913eabdb |
|
MD5 | 38d8982eb0c9b5f74206fed348047648 |
|
BLAKE2b-256 | 8da04ffccf46343b85eb28a935397bd5003f83a4713494363f607d9abcf2123d |
Close
Hashes for django_highlander-0.0.1.dev0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc56cafe221d326c62bc18c67a7a76fb7579659a491481b6e8e84bf514c8e213 |
|
MD5 | 675115c4e2a2aabcf695f5f3328656f6 |
|
BLAKE2b-256 | 131ba9c2f3daab4b55954159f9a8669c83a5aee4c2d0c34c54e0e30e548cc489 |