Skip to content

make_write_keys_zset_key doesnt check empty input #104

@leahtangmjpro

Description

@leahtangmjpro

Hi, I’m only using thread_id to create checkpoints. When I call the delete_thread method, I noticed that the zset keys aren’t being deleted. I think the issue might be that it doesn’t check for empty values when creating them.

def make_write_keys_zset_key( thread_id: str, checkpoint_ns: str, checkpoint_id: str ) -> str: """Create the key for the write keys sorted set for a specific checkpoint.""" return REDIS_KEY_SEPARATOR.join( [WRITE_KEYS_ZSET_PREFIX, thread_id, checkpoint_ns, checkpoint_id] ) 

Additionally, I tried passing checkpoint_ns, but it always ends up as __empty__.
I’m using langgraph==0.6.8, and here’s the snippet I’m using:

config = RunnableConfig( configurable={"thread_id": thread_id, "checkpoint_ns": checkpoint_ns}, ) graph.invoke(state, config=config) 

Thanks for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions