[pylons-discuss] Re: How to send task-message after request.tm has committed?

2018-05-31 Thread jens . troeger
Poking around the documentation some more, it seems that using an after-commit-hook may work: i.e. when a task needs to be scheduled by the view function, then find the request’s transaction (from `request.tm`?) and

[pylons-discuss] How to send task-message after request.tm has committed?

2018-05-31 Thread jens . troeger
Hi, Within a view function it becomes necessary to run an async task. Celery , Dramatiq , etc are frameworks to handle that. However, my async task needs to read db objects which have been created—and must be committed and persisted—by the