Skip to main content

Django command cron

Project description

Installation

$ pip install django-command-cron

settings.py

INSTALLED_APPS+=['django_command_cron']

# command_cron_worker.py settings
COMMAND_CRON_WORKER_SLEEP_INTERVAL=0.1
COMMAND_CRON_WORKER_RESTART_INTERVAL=3600

migrate

$ python manage.py migrate

Features

  • admin interface

Management commands

name|description -|-|- command_cron|call pending commands once command_cron_worker|worker

Examples

$ python manage.py command_cron # single run
$ python manage.py command_cron_worker # worker (endless loop)

worker

$ python manage.py command_cron_worker

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_command_cron-0.0.0.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file django_command_cron-0.0.0.tar.gz.

File metadata

  • Download URL: django_command_cron-0.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for django_command_cron-0.0.0.tar.gz
Algorithm Hash digest
SHA256 1caff6d632b90e22d9013e99c8a3eb810216895a35bf9156da804f327ce15ce6
MD5 6b959f8e7c67d6c0f2d9bffa3a492c8c
BLAKE2b-256 340048b238d9c5fdf6c1fae9640ed51fac3f52ed932a475c646ccc3af800b9bc

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