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

2018-06-01 Thread Mikko Ohtamaa
Hi Jens, You can also look here for inspiration: https://websauna.org/docs/narrative/misc/task.html#delayed-tasks On 1 June 2018 at 05:34, wrote: > Hi, > > Within a view function it becomes necessary to run an async task. Celery > , Dramatiq

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

2018-06-01 Thread jens . troeger
Hello Thierry, You are talking about these data managers: http://zodb.readthedocs.io/en/latest/transactions.html#data-managers Correct? Other than the Mailer it seems a little difficult to find more verbose documentation? I have played a little more

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

2018-06-01 Thread Thierry Florac
Hi, Maybe you should have a look at the "DataManager" component interface provided by the "transaction" package. This kind of component allows you to include your hook in a "two-phase commit" transaction safely. Several implementations are available, for example in the "repoze.sendmail" package...