Skip to main content

Django integration with schedule module

Project description

django-easy-schedule

Integration of Python schedule library with Django

Installation

Add "django_easy_schedule" to your INSTALLED_APPS settings like this:

INSTALLED_APPS = (
    "django_easy_schedule",
    ...
)

Usage

Create a file named jobs.py in any installed app, like this:

from schedule import every, repeat


@repeat(every(1).seconds)
def run_job():
    try:
        ## Do your work here
        pass
    except KeyboardInterrupt:
        pass

Running jobs

To run the jobs use the following command

python manage.py jobs run

More documentation

For more information check the documentation of schedule package.

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-easy-schedule-0.1.6.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

django_easy_schedule-0.1.6-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

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