Fix IOU symlink issue on remote servers.

This commit is contained in:
grossmj committed 2019-03-18 18:11:16 +07:00
1 parent 8e8985c69f
commit e291ec1eb9
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -662,6 +662,13 @@ class IOUVM(BaseNode):
pass
self._iou_process = None
try:
symlink = os.path.join(self.working_dir, os.path.basename(self.path))
if os.path.islink(symlink):
os.unlink(symlink)
except OSError as e:
log.warning("Could not delete symbolic link: {}".format(e))
self._started = False
self.save_configs()