Open smlz opened 11 years ago
Need this fix too
I too have this same issue.
Me too.
Me three.. kind of a requirement when doing automated tests using ALWAYS_EAGER
Same. Is this a dead project?
We've been having trouble applying this patch to latest HEAD, so I thought I'd share.
The below works for us - but use at your own risk.
Auto-commit synchronously executed tasks when CELERY_ALWAYS_EAGER is set to True.
When CELERY_ALWAYS_EAGER is set, tasks are executed synchronously in the same VM. Writing to the database in a such a djcelery_transactions.task, will then raise a TransactionManagementError, as the modifications are not automatically commited to the database.