﻿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
14050	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
        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)

This doesn't seem very easy to accomplish, as I can't see any mechanism
to hook into commit/rollback. Do you think it could be possible
to add new signals for this?

"	Uncategorized	closed	Database layer (models, ORM)	1.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
