Re: [sqlalchemy] Guidance regarding nested session usage

2017-08-09 Thread Mike Bayer
On Wed, Aug 9, 2017 at 4:26 PM, Mike Bayer wrote: > made. Which is above, **if you are not using begin() and commit(), > the way we just said you should, then you should turn off > autocommit=True**. arg arg ARG ARG "if you are **not** using begin() and commit(), and

Re: [sqlalchemy] Guidance regarding nested session usage

2017-08-09 Thread Mike Bayer
On Wed, Aug 9, 2017 at 12:14 PM, wrote: > Hey, > > I'd like some help regarding nested session usage please. > > I'm working on an application that has an API layer but also has a lot of > cron jobs (via Celery) and scripts. I'm trying to design the app in a way > that my

[sqlalchemy] Guidance regarding nested session usage

2017-08-09 Thread alex
Hey, I'd like some help regarding nested session usage please. I'm working on an application that has an API layer but also has a lot of cron jobs (via Celery) and scripts. I'm trying to design the app in a way that my "business" logic is contained and re-usable by any of these interfaces.