Skip to content

Conversation

@Pdzly
Copy link
Collaborator

@Pdzly Pdzly commented Dec 19, 2025

No description provided.

feat: implement cleanup service for expired and deleted pastes

- Add `CleanupService` to handle removal of expired and deleted pastes
- Introduce `KEEP_DELETED_PASTES_TIME_HOURS` configuration option
- Implement database and file cleanup for expired pastes
- Implement database and file cleanup for deleted pastes beyond threshold
- Add proper logging for cleanup operations
- Update main.py to initialize and start cleanup worker
- Add EditPaste DTO and update PasteResponse with last_updated_at
- Add CreatePasteResponse with edit_token and delete_token fields
… hosts format

- Introduce `APP_KEEP_DELETED_PASTES_TIME_HOURS` to control how long deleted pastes are retained
- Rename `TRUSTED_HOSTS` to `APP_TRUSTED_HOSTS` for consistency
- Update `.env.example` with new configuration option and corrected variable name
@Pdzly Pdzly merged commit 723912f into master Dec 19, 2025
3 checks passed
@Pdzly Pdzly deleted the feature/17-15-delete-and-edit-pastes branch December 19, 2025 13:21
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.

2 participants