Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 29, 2022
1 parent 20b7a51 commit d196fa9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pydra/engine/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ async def fetch_finished(self, futures):
done = set()
try:
done, pending = await asyncio.wait(
[asyncio.create_task(f) if not isinstance(f, asyncio.Task) else f for f in futures],
[
asyncio.create_task(f) if not isinstance(f, asyncio.Task) else f
for f in futures
],
return_when=asyncio.FIRST_COMPLETED,
)
except ValueError:
Expand Down Expand Up @@ -106,7 +109,10 @@ async def fetch_finished(self, futures):
try:
self._jobs += len(futures)
done, pending = await asyncio.wait(
[asyncio.create_task(f) if not isinstance(f, asyncio.Task) else f for f in futures],
[
asyncio.create_task(f) if not isinstance(f, asyncio.Task) else f
for f in futures
],
return_when=asyncio.FIRST_COMPLETED,
)
except ValueError:
Expand Down

0 comments on commit d196fa9

Please sign in to comment.