From 5c0025ceb96e9a5a97cce16eba8341e2d9c7426c Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Fri, 10 Jan 2025 21:05:59 +0800 Subject: [PATCH] 1 --- yj_local_build/main_step1.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/yj_local_build/main_step1.py b/yj_local_build/main_step1.py index e1877d3..b17dced 100644 --- a/yj_local_build/main_step1.py +++ b/yj_local_build/main_step1.py @@ -263,6 +263,11 @@ if __name__ == '__main__': #将文件夹移动到工作目录 shutil.move(os.path.join(needBuildDir,pid),os.path.join(workdir,pid)) + + res = getXmps(pid) + if res == False: + break + #执行建模流程,建模中的流程 try: requests.post(url, data={'id': pid,'status':4000}) @@ -270,6 +275,7 @@ if __name__ == '__main__': print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid:{pid} - 状态变更失败 - {e}') #continue + main(pid,headsCounts) except Exception as e: print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} 建模任务循环异常 - {e}')