Skip to content

Commit 51a3601

Browse files
committed
Add name to task and loop
1 parent 0c32ef1 commit 51a3601

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llmstack/apps/runner/agent_actor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ def reset(self):
455455
self._process_output_task = loop.create_task(self._process_output())
456456
except RuntimeError:
457457
logger.info("No running event loop, creating one and running process output task")
458-
self._process_output_task = run_coro_in_new_loop(self._process_output())
458+
self._process_output_task = run_coro_in_new_loop(self._process_output(), name="process_output")
459459

460460
def on_stop(self):
461461
super().on_stop()

llmstack/apps/runner/agent_controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async def _init_websocket_connection(self):
229229
logger.info(f"WebSocket connection for realtime mode initialized: {self._websocket}")
230230

231231
# Handle websocket messages and input streams
232-
self._loop.create_task(self._handle_websocket_messages())
232+
self._loop.create_task(self._handle_websocket_messages(), name="handle_websocket_messages")
233233

234234
# Create an initial response
235235
await self._send_websocket_message({"type": "response.create"})

0 commit comments

Comments
 (0)