Skip to main content

django DaemonCommand

Project description


$ [sudo] pip install django-daemon-command


  • never stops after exception
    • exception traceback is saved in the database (SELECT * FROM daemon_command_exc_traceback)
  • logs (SELECT * FROM daemon_command_log)
$ python migrate



from import DaemonCommand

class Command(DaemonCommand):
    sleep = 5

    def process(self,*args,**options):
        self.log('msg') # SELECT * FROM daemon_command_log
$ python command


class Command(DaemonCommand):
    def handle(self, *args, **options):
        ... # init
        self.daemonize(*args, **options)

    def on_exception(self,exc):

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-daemon-command, version 2020.12.3
Filename, size File type Python version Upload date Hashes
Filename, size django-daemon-command-2020.12.3.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

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