Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-celery-transactions 0.1.3

    Download button

    No screenshots available
    Downloads: 120  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Doble | More programs
    BSD License / FREE
    February 4th, 2012, 20:47 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-celery-transactions description

    Django transaction support for Celery tasks

    django-celery-transactions is a Django app that holds on to Celery tasks until the current database transaction is committed, avoiding potential race conditions as described in the Celery user guide. This lets you focus on your app's structure—send tasks from signal handlers without fear!

    See https://github.com/chrisdoble/django-celery-transactions

    Note: As request signals are used to implement this functionality, it will only work from within the request/response cycle.

    Installation/Use

     Install django-celery-transactions from PyPI:

     pip install django-celery-transactions

     Use the patched decorator to create your tasks:

     from djcelery_transaction import task

     @task
     def example():
     print "Hooray, the transaction has been committed!"



    Product's homepage

    Here are some key features of "django-celery-transactions":

    · If the transaction is rolled back, the tasks are discarded. Django's transaction middleware does this if your view raises an exception.
    · If transactions aren't being managed, tasks are sent as normal. This means that sending tasks from Django's shell will work as expected, as will the transaction decorators commit_on_success, commit_manually, etc.

    Requirements:

    · Python
    · Django

      


    TAGS:

    Celery tasks | transaction support | Celery | tasks | transaction

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM