Skip to content

Commit

Permalink
No job cleanup for symlinked job dirs (#154)
Browse files Browse the repository at this point in the history
Fix #105
  • Loading branch information
albertz authored Nov 21, 2023
1 parent 89ea492 commit 450ed58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sisyphus/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,9 @@ def _sis_cleanable(self):
elif self._sis_cleanable_cache:
return True
else:
if os.path.islink(self._sis_path()):
self._sis_cleaned_or_not_cleanable = True
return False
cleanable = not os.path.isfile(self._sis_path(gs.JOB_FINISHED_ARCHIVE)) and self._sis_finished()
if cleanable:
self._sis_cleanable_cache = True
Expand Down

0 comments on commit 450ed58

Please sign in to comment.