﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14051	Signals for transaction commit/rollback	Ask Solem <ask@…>	nobody	"Some users of django-celery have the problem of publishing references to database state that has not yet been commited.

E.g:

{{{
    def add_user(request):
        user = User.objects.create(...)
        # Import the users address book contacts asynchronously using the worker pool.
       import_contacts.delay(user.pk)
}}}

The proposed solution is to add a way to delay these calls until the transaction is committed:

{{{
    from djcelery import on_transaction_commit

    def add_user(request):
        user = User.objects.create(...)
        on_transaction_commit(import_contacts.delay, user.pk)
}}}

I can't see any mechanism to hook into commit/rollback, so it doesn't seem easy
to accomplish.

Do you think it could be possible to add new signals for transaction commit/rollback?"	New feature	closed	Database layer (models, ORM)	1.3	Normal	fixed		Andreas Pelme asksol Brodie Rao Chris Streeter dtrebbien anssi.kaariainen@… glicerinu@… hv@… Anders Hovmöller German M. Bravo kmike84@…	Design decision needed	1	0	0	0	0	0
