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 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.

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.2.tar.gz (2.3 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for django-kronos-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9f5775f6fd420d6f1fc43ccc2f3cd5472ff4aea1d38167020c43854abd7cdac2
MD5 2c534f1a589631d7893d269e98254423
BLAKE2b-256 5229b67cdddfeb5c81a936ce15cb0b6417e15635a0851009213ca93e889690ae

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