File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -1292,16 +1292,16 @@ async def update_needrun(job):
12921292 if output_mintime_ :
12931293 # Input is updated if it is newer than the oldest output file
12941294 # and does not have the same checksum as the one previously recorded.
1295- async def is_updated_input ( f ):
1296- return (
1297- await f . exists ()
1298- and await f .is_newer ( output_mintime_ )
1299- and not await is_same_checksum ( f , job )
1300- )
1301-
1302- reason . updated_input . update (
1303- await asyncio . gather ( * map ( is_updated_input , job . input ))
1304- )
1295+ async def updated_input ( ):
1296+ for f in job . input :
1297+ if (
1298+ await f .exists ( )
1299+ and await f . is_newer ( output_mintime_ )
1300+ and not await is_same_checksum ( f , job )
1301+ ):
1302+ yield f
1303+
1304+ reason . updated_input . update ([ f async for f in updated_input ()] )
13051305 if not reason .updated_input :
13061306 reason .unfinished_queue_input = job .has_unfinished_queue_input ()
13071307 if not reason .unfinished_queue_input :
You can’t perform that action at this time.
0 commit comments