refactor(api): use sessionmaker in workflow & RAG pipeline services (#34805)

This commit is contained in:
carlos4s authored and GitHub committed 2026-04-09 05:42:39 +00:00
1 parent c19a822e1b
commit be1f4b34f8
3 files changed
+5 -10

No files matched your search

@@ -1075,9 +1075,8 @@ class DraftVariableSaver:
)
engine = bind = self._session.get_bind()
assert isinstance(engine, Engine)
with Session(bind=engine, expire_on_commit=False) as session:
with sessionmaker(bind=engine, expire_on_commit=False).begin() as session:
session.add(variable_file)
session.commit()
return truncation_result.result, variable_file