checkpoint-duckdb: handle calling .list on async checkpointer (#3022)

This commit is contained in:
Vadym Barda
2025-01-14 20:00:58 +00:00
committed by GitHub
parent 4c0f855329
commit 5db71a32bf
2 changed files with 13 additions and 1 deletions
@@ -385,7 +385,7 @@ class AsyncPostgresSaver(BasePostgresSaver):
# we don't check in other methods to avoid the overhead
if asyncio.get_running_loop() is self.loop:
raise asyncio.InvalidStateError(
"Synchronous calls to AsyncSqliteSaver are only allowed from a "
"Synchronous calls to AsyncPostgresSaver are only allowed from a "
"different thread. From the main thread, use the async interface. "
"For example, use `checkpointer.alist(...)` or `await "
"graph.ainvoke(...)`."