Skip to main content

Django Serverless Cron

Project description

Django Serverless Cron


The full documentation is at


Run cron jobs easily in a serverless environment.



Install Django Serverless Cron:

pip install django-serverless-cron


Add it to your INSTALLED_APPS:

    # ...
    # ...

Add Django Serverless Cron’s cron jobs to your settings file:

    # (
    #   '1_hours', # frequency (days, minutes, hours, weeks) -> in this case, every one hour
    #   '', # path to task/function functions -> in this case, send_mail_function()
    #   {'kwarg1': 'foo'} # kwargs passed to the function
    # ),
        {'kwarg1': 'foo', 'kwarg2': 'bar'}
        {"is_bulk": True}

URL patterns

Add the jobs to your URL patterns:

from django_serverless_cron import urls as django_serverless_cron_urls

urlpatterns = [
    # ...
    url(r'^', include(django_serverless_cron_urls))

Running Jobs

Running via the view/API

Call the /run path to run all jobs:

curl http://localhost:8000/run


import requests

x = requests.get('http://localhost:8000/run')


Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Development commands

pip install -r requirements_dev.txt
invoke -l


Tools used in rendering this package:


0.1.0 (2022-01-27)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_serverless_cron-0.1.1a5-py2.py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 2 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