Skip to content

Commit b9d579d

Browse files
committed
πŸ”¨ improve test output and quality
1 parent 89fd7be commit b9d579d

File tree

15 files changed

+100
-1616
lines changed

15 files changed

+100
-1616
lines changed

β€Ž.github/workflows/auto-selenium-test.ymlβ€Ž

Lines changed: 0 additions & 62 deletions
This file was deleted.

β€Ž.github/workflows/auto-test.ymlβ€Ž

Lines changed: 0 additions & 53 deletions
This file was deleted.

β€Žbackend/services/agent_service.pyβ€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ async def _add_memory_background():
175175
f"Unexpected error during background memory addition: {bg_e}")
176176

177177
try:
178-
asyncio.create_task(_add_memory_background())
178+
# Create and store the background task to avoid warnings
179+
background_task = asyncio.create_task(_add_memory_background())
180+
# Add done callback to handle any exceptions that might occur
181+
background_task.add_done_callback(lambda t: t.exception() if t.exception() else None)
179182
except Exception as schedule_err:
180183
logger.error(
181184
f"Failed to schedule background memory addition: {schedule_err}")

0 commit comments

Comments
Β (0)