1
This commit is contained in:
1 parent
0fcb136934
commit
5c0025ceb9
1 file changed
+6
@@ -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}')
|
||||
|
||||
Reference in new issue
Block a user