Skip to content
Verified Commit ef1b588c authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

reproducible debian: sqla, wrap all queries into transactions



this saves me the effort of figuring out how 2.0 triggers

    sqlalchemy.exc.InvalidRequestError: This connection has already initialized a SQLAlchemy Transaction() object via begin() or autobegin; can't call begin() here unless rollback() or commit() is called first.

in scheduler.

While doing that, I can also drop some manual begin/commit that were
being done in the scheduler.

Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 206bcc0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment