jack 4 days ago
parent
commit
6faf9e68bf
1 changed files with 4 additions and 3 deletions
  1. 4 3
      app/services/run/run_step.py

+ 4 - 3
app/services/run/run_step.py

@@ -37,10 +37,11 @@ class RunStepService:
 
     @staticmethod
     def get_run_step_list(*, run_id, thread_id, session: Session) -> List[RunStep]:
+        session.commit()
         statement = select(RunStep).where(RunStep.run_id == run_id).where(RunStep.thread_id == thread_id)
-        logging.info("statement: %s", statement)
-        return session.execute(statement).scalars().all()
-
+        result = session.execute(statement).scalars().all()
+        logging.info("result: %s", result)
+        return result
     @staticmethod
     def to_cancelled(*, session: Session, run_step_id) -> RunStep:
         run_step = RunStepService.get_run_step(run_step_id=run_step_id, session=session)