Skip to content

Commit b1658eb

Browse files
Merge branch 'fix/job-rate-limiting' of github.com:snakemake/snakemake into fix/job-rate-limiting
2 parents 4b1f87b + 4e60170 commit b1658eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snakemake/dag.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,10 @@ async def cleanup_storage_objects(self):
437437
async def sanitize_local_storage_copies(self):
438438
"""Remove local copies of storage files that will be recreated in this run."""
439439
async with asyncio.TaskGroup() as tg:
440-
async for job in self.needrun_jobs:
440+
for job in self.needrun_jobs():
441441
if not self.finished(job):
442442
for f in job.output:
443-
if f.is_storage and f.exists_local():
443+
if f.is_storage and await f.exists_local():
444444
tg.create_task(
445445
f.remove(remove_non_empty_dir=True, only_local=True)
446446
)
@@ -1609,7 +1609,7 @@ async def postprocess(
16091609
# cleanup local storage copies of files that will be created by jobs
16101610
# this is important to ensure that there are no outdated local copies
16111611
# that misguide e.g. params functions.
1612-
self.sanitize_local_storage_copies()
1612+
await self.sanitize_local_storage_copies()
16131613
self.update_container_imgs()
16141614
self.update_conda_envs()
16151615
await self.update_needrun()

0 commit comments

Comments
 (0)