# Quick Scheduler Test

## Setup Test Schedule untuk Development

Untuk testing, kita bisa menambahkan schedule yang berjalan setiap menit:

```php
// Tambahkan ke routes/console.php untuk testing (HAPUS setelah test)
Schedule::command('watch-history:cleanup --dry-run')
    ->everyMinute()
    ->name('test-cleanup');
```

## Manual Test Commands

```bash
# Test cleanup command langsung
php artisan watch-history:cleanup --dry-run

# Test statistics
php artisan watch-history:cleanup --stats

# Force run specific schedule
php artisan schedule:work

# List all schedules
php artisan schedule:list
```

## Cron Job Setup

Untuk production, pastikan cron job ini ada di server:

```bash
* * * * * cd /path/to/dracin && php artisan schedule:run >> /dev/null 2>&1
```

## Expected Results

✅ **Daily Cleanup (2:00 AM)**: 
- Hapus data > 90 hari
- Log success/failure
- Background execution

✅ **Weekly Stats (Sunday 3:00 AM)**:
- Generate usage statistics
- Monitor growth trends
- Performance insights

Ready untuk production! 🚀