Skip to content

Commit

Permalink
Fix job state history
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Oct 11, 2023
1 parent f0f0c2a commit ea97fe7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ea97fe7

Please sign in to comment.