Skip to content

Commit

Permalink
Use create tasks and not gather
Browse files Browse the repository at this point in the history
  • Loading branch information
irux committed Oct 17, 2023
1 parent 9f89a4d commit 9a181e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kpops/pipeline_generator/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def build_execution_graph_from(
runner: Callable[[PipelineComponent], Coroutine],
):
async def run_parallel_tasks(tasks):
await asyncio.gather(*tasks)
asyncio.create_task(*tasks)

Check failure on line 90 in kpops/pipeline_generator/pipeline.py

View workflow job for this annotation

GitHub Actions / Test (ubuntu-22.04, 3.10)

Store a reference to the return value of `asyncio.create_task`

async def run_graph_tasks(pending_tasks: list[Awaitable]):
for pending_task in pending_tasks:
Expand Down

0 comments on commit 9a181e1

Please sign in to comment.