django-async

Software Screenshot:
django-async
Software Details:
Version: 0.5
Upload Date: 20 Feb 15
Developer: Kirit Saelensminde
Distribution Type: Freeware
Downloads: 12

Rating: 3.5/5 (Total Votes: 2)

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.

Requirements:

  • Python
  • Django

Other Software of Developer Kirit Saelensminde

django_ip_authn
django_ip_authn

14 Apr 15

Comments to django-async

Comments not found
Add Comment
Turn on images!