diff --git a/sisyphus/job.py b/sisyphus/job.py index 8ea003a..dec8615 100644 --- a/sisyphus/job.py +++ b/sisyphus/job.py @@ -497,11 +497,10 @@ def _sis_cleanable(self): elif self._sis_cleanable_cache: return True else: - cleanable = ( - not os.path.islink(self._sis_path()) - and not os.path.isfile(self._sis_path(gs.JOB_FINISHED_ARCHIVE)) - and self._sis_finished() - ) + if not 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 return cleanable