You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a curious one; I'm only guessing this is the right project to report the bug; I don't see an obvious way to fix it though, and it is a bit of an edge case.
My function uses @transaction.commit_on_success.
It saves a model instance that is attached to a search index.
Via a post_save hook, celery-haystack wants to send the update task to celery.
django-celery-transactions holds the task back for now.
My function ends, commit_on_success executes a COMMIT, sets the connection is_dirty flag to False.
django-celery-transactions, via it's post_commit patching, now triggers the celery task sends.
Since I'm using the database broker, the database connection is dirtied again in this step.
Finally, the code of Django's commit_on_success decorator calls leave_transaction_management, which checks the dirty flag and fails with: ```django-celery-transactions`.
This is using Django 1.5 and Haystack 2 Beta.
The text was updated successfully, but these errors were encountered:
Oh man, what a mess. Is there any way to easily reproduce it? Or a traceback? Not sure if this really can be done here, but I'd love to fix this of course.
This is a curious one; I'm only guessing this is the right project to report the bug; I don't see an obvious way to fix it though, and it is a bit of an edge case.
@transaction.commit_on_success
.celery-haystack
wants to send the update task to celery.django-celery-transactions
holds the task back for now.commit_on_success
executes aCOMMIT
, sets the connectionis_dirty
flag to False.django-celery-transactions
, via it'spost_commit
patching, now triggers the celery task sends.commit_on_success
decorator callsleave_transaction_management
, which checks the dirty flag and fails with: ```django-celery-transactions`.This is using Django 1.5 and Haystack 2 Beta.
The text was updated successfully, but these errors were encountered: