Skip to content

feat: add TTL and cleanup for hard-deleting sessions and events - #2409

Merged
EItanya merged 1 commit into
kagent-dev:mainfrom
supreme-gg-gg:feat/db-cleanup-ttl-main
Aug 10, 2026
Merged

feat: add TTL and cleanup for hard-deleting sessions and events#2409
EItanya merged 1 commit into
kagent-dev:mainfrom
supreme-gg-gg:feat/db-cleanup-ttl-main

Conversation

@supreme-gg-gg

Copy link
Copy Markdown
Contributor

To use, e.g. set database.posetgres.sessionRetentionDays: 30

The following tables are eligible for cleanup: session, shares, events (ADK), push notifications (A2A), tasks (A2A), checkpoints (LangGraph), memory and flow states (CrewAI). This shares the same cleanup runner as long term memory.

This was initially opened as #2403 and received reviews there.

@supreme-gg-gg
supreme-gg-gg requested a review from a team as a code owner August 8, 2026 17:46
Copilot AI lite review requested due to automatic review settings August 8, 2026 17:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions github-actions Bot added the enhancement New feature or request label Aug 8, 2026
EItanya
EItanya previously approved these changes Aug 10, 2026

@EItanya EItanya left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on behalf of @iplay88keys

Signed-off-by: Jet Chiang <pokyuen.jetchiang-ext@solo.io>
@EItanya
EItanya merged commit be91197 into kagent-dev:main Aug 10, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants