This commit is contained in:
dongchangxi committed 2025-01-10 21:05:59 +08:00
1 parent 0fcb136934
commit 5c0025ceb9
1 file changed
+6
+6
View File
@@ -263,6 +263,11 @@ if __name__ == '__main__':
#将文件夹移动到工作目录 #将文件夹移动到工作目录
shutil.move(os.path.join(needBuildDir,pid),os.path.join(workdir,pid)) shutil.move(os.path.join(needBuildDir,pid),os.path.join(workdir,pid))
res = getXmps(pid)
if res == False:
break
#执行建模流程,建模中的流程 #执行建模流程,建模中的流程
try: try:
requests.post(url, data={'id': pid,'status':4000}) 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}') print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid:{pid} - 状态变更失败 - {e}')
#continue #continue
main(pid,headsCounts) main(pid,headsCounts)
except Exception as e: except Exception as e:
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} 建模任务循环异常 - {e}') print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} 建模任务循环异常 - {e}')