On 15 Apr 2014, at 01:12, Jonathan Vanasco <jonat...@findmeon.com> wrote:
> i've got that now as a stopgap; i was hoping someone has better ideas. i > don't like the idea of a post-commit hook, because i fear requesting the > celery task request will create an error. I really don't want to build > `transaction` support for celery, but i might need to. That isn't an uncommon scenario; I touched upon that in http://www.wiggy.net/articles/task-queues as well. For rq I am using a variant of https://gist.github.com/wichert/10714681 . One extra problem you need to take into account is that you are likely to run into problems when one of the arguments is a SQLAlchemy ORM instance: when your function is later run in another process that instance won't be associated with the current session, so you need to merge it. Wichert. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.