Skip to content

Commit

Permalink
fix: ignore errors when cleaning up runtime cache (#2859)
Browse files Browse the repository at this point in the history
<!--Add a description of your PR here-->

### QC
<!-- Make sure that you can tick the boxes below. -->

* [x] The PR contains a test case for the changes or the changes are
already covered by an existing test case.
* [x] The documentation (`docs/`) is updated to reflect the changes or
this is not necessary (e.g. if the change does neither modify the
language nor the behavior or functionalities of Snakemake).
  • Loading branch information
johanneskoester committed May 3, 2024
1 parent ba1db8e commit 6df7046
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snakemake/sourcecache.py
Expand Up @@ -353,7 +353,9 @@ def __init__(self, cache_path: Path, runtime_cache_path: Path = None):
if runtime_cache_path is None:
runtime_cache_parent = self.cache_path / "runtime-cache"
os.makedirs(runtime_cache_parent, exist_ok=True)
self.runtime_cache = tempfile.TemporaryDirectory(dir=runtime_cache_parent)
self.runtime_cache = tempfile.TemporaryDirectory(
dir=runtime_cache_parent, ignore_cleanup_errors=True
)
self._runtime_cache_path = None
else:
self._runtime_cache_path = runtime_cache_path
Expand Down

0 comments on commit 6df7046

Please sign in to comment.