Skip to content

Conversation

@bsbodden
Copy link
Contributor

Add async setup() method to AsyncRedisSaver that delegates to asetup() to match the canonical pattern used by PostgreSQL and SQLite checkpointers.

This fixes the RuntimeWarning caused by calling the inherited sync setup() method from BaseRedisSaver, which called async create() methods without awaiting them.

Maintains backward compatibility by keeping the existing asetup() method while providing the standard async setup() interface that users expect from LangGraph checkpointers.

Fixes #74

Add async setup() method to AsyncRedisSaver that delegates to asetup()
to match the canonical pattern used by PostgreSQL and SQLite checkpointers.

This fixes the RuntimeWarning caused by calling the inherited sync setup()
method from BaseRedisSaver, which called async create() methods without
awaiting them.

Maintains backward compatibility by keeping the existing asetup() method
while providing the standard async setup() interface that users expect
from LangGraph checkpointers.

Fixes #74
@bsbodden bsbodden closed this Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AsyncRedisSaver.setup() calls async methods without awaiting

2 participants