Skip to content
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

Open
jvanasco opened this issue Apr 14, 2014 · 4 comments
Open

transaction support #41

jvanasco opened this issue Apr 14, 2014 · 4 comments

Comments

@jvanasco
Copy link

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.

@miohtama
Copy link
Contributor

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.

@dstufft
Copy link

dstufft commented Aug 19, 2015

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.

@jvanasco
Copy link
Author

jvanasco commented Apr 6, 2016

here's a project that handles this

https://github.com/petrilli/pyramid_transactional_celery

@miohtama
Copy link
Contributor

miohtama commented Apr 7, 2016

Here is another implementation: https://websauna.org/narrative/misc/task.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants