849 B
849 B
Orphaned Videos Cleanup - Progress Tracker
Steps (Approved Plan):
- Step 1: Add
CLEANUP_INTERVAL_MINUTES=30to.env - Step 2: Create Artisan command
app/Console/Commands/CleanupOrphanedVideos.php - Step 3: Register command in
app/Console/Kernel.php(commands()) (autoloaded) - Step 4: Add schedule to
app/Console/Kernel.phpusing env interval - Step 5: Test:
php artisan cleanup:orphaned-videos --dry-run(tested via tool) - Step 6: Verify schedule:
php artisan schedule:run(verified; next due in ~19min) - Step 7: Production cron setup reminder (Add to crontab:
* * * * * cd /var/www/videoplatform && php artisan schedule:run >> /dev/null 2>&1) - Complete: attempt_completion
✅ TASK COMPLETE - Cron job implemented. See README in file for usage.