Skip to content

Commit

Permalink
Merge pull request #16283 from jdavcs/dev_autocommit_reset
Browse files Browse the repository at this point in the history
Reset autocommit to True (temporarily)
  • Loading branch information
mvdbeek authored Jun 21, 2023
2 parents 66e8266 + bde1376 commit 7a8fdd0
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 @@ -59,7 +59,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=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 7a8fdd0

Please sign in to comment.