Skip to content

Commit

Permalink
fix deprecated use of coroutine in task for python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
eliteprox committed Dec 5, 2024
1 parent 87d6efe commit a2b9642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/app/live/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def main(http_port: int, stream_protocol: str, subscribe_url: str, publish
runner = await start_http_server(streamer, http_port)

tasks: List[asyncio.Task] = []
tasks.append(streamer.wait())
tasks.append(asyncio.create_task(streamer.wait()))
tasks.append(asyncio.create_task(block_until_signal([signal.SIGINT, signal.SIGTERM])))
if control_url is not None and control_url.strip() != "":
tasks.append(asyncio.create_task(start_control_subscriber(streamer, control_url)))
Expand Down

0 comments on commit a2b9642

Please sign in to comment.