Skip to content
Snippets Groups Projects
Commit 5f725e3e authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Remove done files at run detection twice

parent bb7923b3
No related branches found
No related tags found
No related merge requests found
......@@ -703,6 +703,10 @@ class CnvPipeline:
return False
else:
self._rerun_tools(new_tools=tools)
# Remove done files
done_files = glob(os.path.join(self.wdir, ".done*"))
for done_f in done_files:
os.remove(done_f)
if self.config_data["batches"] != batches:
print("Error: rerun with a different number of batch size not allowed. Exiting...", file=sys.stderr)
exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment