From 7ffc2b75ceddd00631a03098dd1a1dd558720a6e Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Wed, 6 Mar 2024 02:01:58 +0000 Subject: [PATCH] Don't call ``get_or_create_default_history()`` twice for invalidated sessions --- lib/galaxy/webapps/base/webapp.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/galaxy/webapps/base/webapp.py b/lib/galaxy/webapps/base/webapp.py index effc7a489131..a13059484f94 100644 --- a/lib/galaxy/webapps/base/webapp.py +++ b/lib/galaxy/webapps/base/webapp.py @@ -664,10 +664,6 @@ def _ensure_valid_session(self, session_cookie: str, create: bool = True) -> Non self.sa_session.add(prev_galaxy_session) with transaction(self.sa_session): self.sa_session.commit() - # If the old session was invalid, get a new (or existing default, - # unused) history with our new session - if invalidate_existing_session: - self.get_or_create_default_history() def _ensure_logged_in_user(self, session_cookie: str) -> None: # The value of session_cookie can be one of