AOSSIE-Org / AOSSIE-Org/Devr.AI

Blocking Supabase Writes Increasing Agent Response Latency

オープン
#294 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
102
フォーク
137
PR マージ指標
30日以内にマージされた PR はありません

説明

# Problem
```store_summary_to_database ``` was called directly within the agent's execution flow. This function performs a database upsert to Supabase. While the call is asynchronous (```await```), the agent's progress is still paused until the database confirms the write. Database I/O can be unpredictable and slow, which directly increases the latency of the user's message processing—even though the user doesn't need to wait for the summary to be saved before receiving a response.

### fix

To address this, the approach taken was to decouple the database write from the main agent execution flow, so that the summary storage is handled outside the immediate message-processing path rather than blocking the agent’s response generation.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。