ソースを参照

0111测试打印去除

xujiayue 1 年間 前
コミット
2dec4d5123
3 ファイル変更1 行追加4 行削除
  1. 1 2
      app/models/jm_job_info.py
  2. 0 1
      app/routers/jm_job_info.py
  3. 0 1
      app/utils/send_util.py

+ 1 - 2
app/models/jm_job_info.py

@@ -38,6 +38,5 @@ class JmJobInfo(BaseModel):
     # 更新时间
     update_time = Column(Integer)
 
-
     def __repr__(self):
-        return f'id: {self.id}, name: {self.name}, type: {self.type}'
+        return f'id: {self.id}, name: {self.name}, type: {self.type}'

+ 0 - 1
app/routers/jm_job_info.py

@@ -64,7 +64,6 @@ def get_jm_job_infos(token_data: schemas.TokenData = Depends(verify_users), db:
         history = history[0:10]
         history.sort(key=lambda x: x['start_time'], reverse=False)
         jm_job_dict.update({'history':history})
-        print(jm_job)
         requirements_status = get_requirements_status_by_job_id(db,jm_job.id)
         jm_job_dict.update({'requirements_status': 0 if requirements_status else 1})
         res_list.append(jm_job_dict)

+ 0 - 1
app/utils/send_util.py

@@ -202,7 +202,6 @@ def post_install_requirements(requirements_str: str,target_path: str):
 
 # 根据job_id和af_run_id获取运行状态
 def get_running_status(job_id: str, af_run_id: str):
-    print(job_id, af_run_id)
     res = requests.get(url=f'http://{AF_HOST}:{AF_PORT}/af/af_run/running_status/{job_id}/{af_run_id}')
     result = res.json()
     if 'code' in result.keys() and result['code'] == 200: