Skip to content

Commit

Permalink
Reset autocommit to True (temporarily)
Browse files Browse the repository at this point in the history
A deadlock has happened at least on two occasions which may be related
to the autocommit setting recently set to False. Resetting this to True
until we can figure out what's causing the deadlock and fix it.
  • Loading branch information
jdavcs committed Jun 21, 2023
1 parent e12c799 commit bde1376
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 bde1376

Please sign in to comment.