jack пре 4 дана
родитељ
комит
6faf9e68bf
1 измењених фајлова са 4 додато и 3 уклоњено
  1. 4 3
      app/services/run/run_step.py

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

@@ -37,10 +37,11 @@ class RunStepService:
 
 
     @staticmethod
     @staticmethod
     def get_run_step_list(*, run_id, thread_id, session: Session) -> List[RunStep]:
     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)
         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
     @staticmethod
     def to_cancelled(*, session: Session, run_step_id) -> RunStep:
     def to_cancelled(*, session: Session, run_step_id) -> RunStep:
         run_step = RunStepService.get_run_step(run_step_id=run_step_id, session=session)
         run_step = RunStepService.get_run_step(run_step_id=run_step_id, session=session)