romanzipp / Laravel-Queue-Monitor

Monitoring Laravel Jobs with your Database
https://packagist.org/packages/romanzipp/laravel-queue-monitor
MIT License
693 stars 91 forks source link

feature: Keep Only Last Instance #55

Closed javis closed 3 years ago

javis commented 3 years ago

Appart from keeping only failed jobs, it would be nice to have an option to keep only the last instance of each job

romanzipp commented 3 years ago

I don't think this would be a feature used by many developers. Thus I won't implement it in the core package. You could easily run a scheduled job deleting all past entries from the queue monitor table