Skip to content

MongoDB CheckpointSaver: No date field available for TTL index support in current schema #1336

@yishaistern

Description

@yishaistern

I'm using the CheckpointSaver with MongoDB for persistence and would like to set up a TTL index to automatically expire old checkpoints. However, I noticed that the current MongoDB documents don't include a Date-type field that can be used for TTL purposes. It would be great to have a timestamp (e.g., createdAt) added to the saved checkpoints to support this use case.
at this point schema looks like this:
{ "_id": { "$oid": "" }, "checkpoint_id": "", "checkpoint_ns": "", "thread_id": "", "checkpoint": { "$binary": { "base64": "", "subType": "00" } }, "metadata": { "$binary": { "base64": "", "subType": "00" } }, "parent_checkpoint_id": "", "type": "json" }
None of these are Date type

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions