Skip to content

Commit

Permalink
Set future=True flag on the session
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Dec 12, 2023
1 parent 377f783 commit 58843c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/model/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def transaction(session: Union[scoped_session, Session, "SessionlessContext"]):
class ModelMapping(Bunch):
def __init__(self, model_modules, engine):
self.engine = engine
self._SessionLocal = sessionmaker(autoflush=False, autocommit=False)
self._SessionLocal = sessionmaker(autoflush=False, autocommit=False, future=True)
versioned_session(self._SessionLocal)
context = scoped_session(self._SessionLocal, scopefunc=self.request_scopefunc)
# For backward compatibility with "context.current"
Expand Down

0 comments on commit 58843c5

Please sign in to comment.