skip to navigation
skip to content

django-kronos 0.2.2

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

Downloads ↓

Latest Version: 0.2.3

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 is now compatible with Django 1.4-style projects.
* Fixed a bug that caused Kronos to crash upon installing tasks to an empty 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.
 
File Type Py Version Uploaded on Size # downloads
django-kronos-0.2.2.tar.gz (md5) Source 2011-12-26 2KB 273