Skip to main content

Cronjob helper for Django

Project description

Provides a @cron decorator to mark cronjob methods in your site and a namespace for manage so they can be executed.

Installation

  1. Install from pypi:

    pip install cronjobs
  2. Add ‘cronjobs’ to your INSTALLED_APPS in settings.py.

Usage

Methods can be added to anywhere, but if you put them in a file called cron.py inside an app, they will be automatically imported.

Register your method by decorating it with @register, for example:

from cronjobs import register
@register
def some_function():
    pass

You can then run:

manage.py cron some_function

License: BSD

Authors: Jeff Balogh then packaged and broken by Andy McKay

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-cronjobs-0.1.tar.gz (1.9 kB view hashes)

Uploaded Source

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