From ea97fe7c4f91534e9ba95e33fecfe8a12079484c Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 11 Oct 2023 18:05:17 -0400 Subject: [PATCH] Fix job state history --- lib/galaxy/model/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 5075d5652185..5284f7779ab4 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -1655,6 +1655,8 @@ def set_state(self, state): .values(state=state) ) if rval.rowcount == 1: + # Need to expire state since we just updated it, but ORM doesn't know about it. + session.expire(self, ["state"]) self.state_history.append(JobStateHistory(self)) return True else: