From a31000d8ad1651de69b3658c7c17c0ba2554bf30 Mon Sep 17 00:00:00 2001 From: "Gan, Jimmy" Date: Thu, 2 Apr 2026 08:59:06 +0800 Subject: [PATCH] debug: add print statements to track executor initialization --- dashboard/backend/services/agent_executor.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dashboard/backend/services/agent_executor.py b/dashboard/backend/services/agent_executor.py index c8e3a1d..39a0722 100644 --- a/dashboard/backend/services/agent_executor.py +++ b/dashboard/backend/services/agent_executor.py @@ -320,5 +320,14 @@ async def get_executor() -> AgentExecutor: async def start_executor(): """Start the executor service""" - executor = await get_executor() - await executor.start() + print("start_executor() called") + try: + executor = await get_executor() + print(f"Executor obtained: {executor is not None}, running: {executor.running}") + await executor.start() + print("Executor start() completed (should not reach here as start() is infinite loop)") + except Exception as e: + print(f"ERROR in start_executor: {e}") + import traceback + traceback.print_exc() + raise