Commit 652fa316 authored by jinkaiqiang's avatar jinkaiqiang

fix:推迟5s

parent 931db3e3
Pipeline #76679 passed with stage
in 17 seconds
......@@ -42,7 +42,9 @@ def readonly_handler(func, path, execinfo):
if os.path.exists(git_path):
if platform.system() == 'Linux':
os.system(f"rm -rf {deploy_repo_path} && echo delete success")
time.sleep(1)
logger.info("delete sucess")
time.sleep(5)
logger.info("defer 5 s")
else:
shutil.rmtree(git_path, onerror=readonly_handler)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment