Theodore Li
802f4cf0fc
feat(jobs): Add data retention jobs (#4128)
* feat(jobs): Add data retention jobs
Add 3 cron-triggered cleanup jobs dispatched via Trigger.dev (or inline fallback):
- cleanup-soft-deletes: hard-deletes soft-deleted workspace resources past retention
- cleanup-logs: deletes expired workflow execution logs + S3 files
- cleanup-tasks: deletes expired copilot chats, runs, feedback, inbox tasks
Enterprise admins can configure per-workspace retention via Settings > Data Retention.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
# Conflicts:
# packages/db/migrations/meta/0192_snapshot.json
# packages/db/migrations/meta/_journal.json
# packages/db/schema.ts
* Cleanup orphaned using ids, not timestamp sorting
* fix lint
2026-04-20 20:24:39 -04:00
..
2026-03-13 21:02:08 -07:00
2026-04-20 20:24:39 -04:00
2026-03-30 19:02:17 -04:00
2026-01-25 02:21:02 -08:00
2026-04-20 16:46:28 -07:00
2026-03-13 21:02:08 -07:00
2026-03-26 13:04:23 -07:00
2026-04-18 14:39:03 -07:00
2025-12-28 00:36:48 -08:00