Merge branch 'master' into feature/distributed
This commit is contained in:
commit
f7eb6d02e0
2 files changed
+8
-1
No files matched your search
@@ -158,6 +158,11 @@ def step1(pid, experience=False, makeloop=True,task_distributed_id=""):
|
||||
# cal_reconstruction_region(psid, pid)
|
||||
|
||||
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} {pid} step1图片预处理完成,共费时{libs.diff_time(start_time)}')
|
||||
|
||||
if os.path.exists(os.path.join(config.sharedir, pid)):
|
||||
shutil.rmtree(os.path.join(config.sharedir, pid), ignore_errors=True)
|
||||
shutil.copytree(os.path.join(config.workdir, pid), os.path.join(config.sharedir, pid))
|
||||
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} {pid} step1任务完成,移动到共享目录')
|
||||
|
||||
# TODO: 更新本地step1任务状态,加入step2任务队列
|
||||
if task_distributed_id == "":#不是分布式任务的时候就自动往下个步骤走,是分布式任务的时候就就执行当前任务
|
||||
|
||||
Reference in new issue
Block a user