-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: delete old google drive export files cron job- AI-561 #257
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Playwright test resultsDetails Open report ↗︎ Skipped testsNo persona › tests/auth.test.ts › authenticate through Clerk UI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! A v minor comment
Quality Gate passedIssues Measures |
🎉 This PR is included in version 1.14.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Description
The route will fetch google drive ids that are expired (over two weeks) and update the expiredAt field in lesson_exports where the gdriveFileIds match. It then deletes the files from drive.
How to test
Create a lesson and export resources.
Change the query so that it fetches all files not just older than 14 days
Run app locally and run the cron job by going to http://localhost:2525/api/cron-jobs/expired-exports
Check that files are deleted from Google Drive playground output folder and
expired_at
has been set to current time in local database.Checklist