Article cleanup and retention policy #89
Labels
No labels
bug
devops
duplicate
enhancement
good first issue
next major release
next minor release
question
testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lvl0/fedi-feed-router#89
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a scheduled cleanup mechanism for old and rejected articles to prevent unbounded database growth.
Context
Rejected and old published articles accumulate indefinitely. With automated posting enabled, this will grow faster. Need a retention policy and cleanup job.
Architecture note (post #85)
route_articlesrecords are cascade-deleted when their parent article is deleted, so cleaning up articles automatically cleans up route_articles tooroute_articlesshould have a shorter retention than their parent article (e.g. article stays but rejected route_articles are pruned)Tasks
article_retention_daysfor published,rejected_retention_daysfor rejected)