File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments