Skip to main content

Kronos is a Django application that makes it easy to define and schedule tasks with cron.

Project description

Kronos
======

Kronos makes it really easy to schedule tasks with cron.

Usage
-----

Define tasks
^^^^^^^^^^^^

Kronos collects tasks from ``cron`` modules in your project root and each of your applications::

# app/cron.py

import kronos

@kronos.register('0 0 * * *')
def complain():
complaints = [
"I forgot to migrate our applications's cron jobs to our new server! Darn!",
"I'm out of complaints! Damnit!"
]

print random.choice(complaints)

Register tasks with cron
^^^^^^^^^^^^^^^^^^^^^^^^

::

$ python manage.py installtasks

Installation
------------

$ pip install django-kronos

Add ``kronos`` to ``INSTALLED_APPS``.


0.2.3
+++++

* Kronos now supports Django 1.4-style projects.
* Fixed a bug that caused installation to fail for users that didn't already have a crontab.

0.2.2
+++++

* Fixed a bug that caused unclosed single quotes in the crontab to raise a ValueError

0.2.1
+++++

* Fixed a bug that caused 'cron'-modules in the project root to be ignored.

0.2.0
+++++

* Kronos will now collect tasks from a 'cron' module in the project root.

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-kronos-0.2.3.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file django-kronos-0.2.3.tar.gz.

File metadata

  • Download URL: django-kronos-0.2.3.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for django-kronos-0.2.3.tar.gz
Algorithm Hash digest
SHA256 061c54cb0884b4406ca6ef55a4e5478b85d7ff6a5d3f0933d49b01d6fb8eaa30
MD5 188a079a720b38f4f40429eb701144b1
BLAKE2b-256 2e87ccc184916b80f009e5a580362a5d048857bb9ba4b136e37ecd2a5f25d58f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page