Poking around the documentation some more, it seems that using an 
after-commit-hook 
<http://zodb.readthedocs.io/en/latest/transactions.html#after-commit-hooks> 
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 install the hook 
function and and its arguments (i.e. which task needs to be scheduled and 
the task’s args).

But still, what is the official and recommended way of solving this? 🤔

Cheers!

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-discuss+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-discuss@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pylons-discuss/25d30da3-5079-46f7-b15a-2ffe3d44c06e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to