Skip to content

Add data retention service for old posts and notifications#3

Merged
rockfordlhotka merged 1 commit intomainfrom
feat/data-retention
Mar 19, 2026
Merged

Add data retention service for old posts and notifications#3
rockfordlhotka merged 1 commit intomainfrom
feat/data-retention

Conversation

@rockfordlhotka
Copy link
Copy Markdown
Member

Summary

  • Add background service that purges posts and notifications older than a configurable threshold (default 30 days)
  • Runs every 24 hours (configurable via SocialAgent:RetentionCheckIntervalHours)
  • Uses EF Core ExecuteDeleteAsync for efficient bulk deletes
  • Profiles and poll state are not purged (they're upserted, not accumulated)

Configuration

{
  "SocialAgent": {
    "RetentionDays": 30,
    "RetentionCheckIntervalHours": 24
  }
}

Test plan

  • Solution builds with zero warnings
  • All unit tests pass

🤖 Generated with Claude Code

Background service runs every 24h (configurable) and deletes posts
and notifications older than 30 days (configurable). Uses EF Core
bulk ExecuteDeleteAsync for efficiency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rockfordlhotka rockfordlhotka merged commit e5bcd44 into main Mar 19, 2026
@rockfordlhotka rockfordlhotka deleted the feat/data-retention branch March 19, 2026 06:31
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.

1 participant