This commit is contained in:
dongchangxi committed 2023-11-16 09:25:49 +08:00
1 parent 3197efd6a3
commit 46dacc2f7c
7 files changed
+62 -13

No files matched your search

+1 -1
View File
@@ -207,7 +207,7 @@ def step3(pid,task_distributed_id=""):
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid: {pid} 模型后道处理完成,共费时{libs.diff_time(start_time)}')
res = requests.post(config.urls['update_status_modelsuccess_url'], data={'id': pid})
print('上传完成更新建模成功状态:', res.text)
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True)
#shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True)
libs_db.finish_task({"task_type": "make", "task_key": pid})
if task_distributed_id:
#因为step2 和step3 是一起跑的,所以这一步先注释掉更新子表的finished_at