-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
transaction support #41
Comments
Here is an example how Warehouse does it: https://github.com/pypa/warehouse/blob/0f168c8da2e982155e0c3e90d1c5856fffce0d4f/warehouse/celery.py I was looking for to integrate this to pyramid_celery, though I am still a bit Celery noob. |
That task doesn't actually do it yet, I haven't pushed and merged in that PR for that yet. Currently all that task does is wrap each task in it's own pyramid_tm controlled, transaction and pass a Pyramid request into the tasks to get access to things attached to the request. |
here's a project that handles this |
Here is another implementation: https://websauna.org/narrative/misc/task.html |
it would be great if this supported joining the pyramid_tm transaction
for example, if I call something an async task, it could defer sending the request to the broker until the transaction commits.
The text was updated successfully, but these errors were encountered: