django-async 0.5

Asynchronous task execution with proper database transaction management for Django

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
Boost Software License Version 1.0 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Kirit Saelensminde
HOMEPAGE:
github.com
CATEGORY:
ROOT \ Internet \ HTTP (WWW)
django-async is an asynchronous execution queue for Django with proper database transaction management.

Building a database backed task queue is a fairly trivial thing, but getting the database transactions exactly right is no simple matter.

Using Django Async

Installation is very simple, just add the ``async`` application to your Django applications in ``settings.py``.

To run a job asynchronously just use the ``schedule`` function:

    from async import schedule
    schedule('my.function', args=(1, 2, 3), kwargs=dict(key='value'))

Tasks can be run by executing the management command ``flush_queue``:

    python manage.py flush_queue


``flush_queue`` will run once through the jobs that are scheduled to run at that time, but will exit early if any job throws an exception. Normally you would use it from an external script that simply keeps re-running the command.

Last updated on July 16th, 2012

requirements

#task execution #database transaction #Django #task #execution #database

Add your review!

SUBMIT