romanzipp / Laravel-Queue-Monitor

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

listen to JobPushed event for Horizon #153

Closed AsemAlalami closed 2 months ago

AsemAlalami commented 3 months ago

Listen to the Laravel\Horizon\Events\JobPushed event if the Horizon is installed

I'm working on a project that uses Horizon to manage their queues and monitor jobs for developers and uses the Laravel-Queue-Monitor to monitor jobs for the end-user. the issue happened when the developer retried the failed job from the Horizon interface, the new job did not monitor because Horizon fires the JobPushed event instead of the JobQueued event.

geanruca commented 3 months ago

It works! Thanks! I was just looking for this :D 🥇

romanzipp commented 2 months ago

Thanks for the contribution!! Looks good to me :)