From f3a2ce8de71202d6ac8caa238291e063b2ede987 Mon Sep 17 00:00:00 2001 From: sharath <29162020+tnfssc@users.noreply.github.com> Date: Thu, 5 Jun 2025 02:00:39 +0000 Subject: [PATCH] fix(run_agent_background): update Redis operation handling to use asyncio tasks --- backend/run_agent_background.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/run_agent_background.py b/backend/run_agent_background.py index 2c3dcd48..cf9715b9 100644 --- a/backend/run_agent_background.py +++ b/backend/run_agent_background.py @@ -135,8 +135,8 @@ async def run_agent_background( # Store response in Redis list and publish notification response_json = json.dumps(response) - pending_redis_operations.append(redis.rpush(response_list_key, response_json)) - pending_redis_operations.append(redis.publish(response_channel, "new")) + pending_redis_operations.append(asyncio.create_task(redis.rpush(response_list_key, response_json))) + pending_redis_operations.append(asyncio.create_task(redis.publish(response_channel, "new"))) total_responses += 1 # Check for agent-signaled completion or error