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

Retry and delete buttons in GUI #49

Closed BernhardK91 closed 1 year ago

BernhardK91 commented 3 years ago

Adding the following functionalities would make a huge benefitfor queue monitor:

Best Regards, Bernhard

romanzipp commented 3 years ago

I've added the delete & purge buttons for version 2.0.25.

Although I don't think a "Retry" action is possible since jobs may receive certain parameters when dispatched. These serialized parameters are not available after a job has finished/failed.

preview

BernhardK91 commented 3 years ago

Awesome!

Because failed jobs are saved in the failed_jobs table (including payload) it should work. If we do not have the ID on the job it can work with php artisan queue:retry all to retry all failed jobs.

See also at https://laravel.com/docs/8.x/queues#retrying-failed-jobs

In the link is also described how all failed jobs can be deleted (queue:flush).

mattdavenport commented 2 years ago

@romanzipp A retry button would be great (if failed_jobs table exists). Is this a contribution you would be willing to accept? Thanks!

bosse-online commented 1 year ago

@romanzipp Any news for the retry button?

Michel-Verhoeven commented 1 year ago

I recently created the retry button for a project we needed it for. I saw this issue was still open and the desire for this functionality is still active (based on @bosse-online question) so made a quick PR yesterday. @romanzipp hope this helps implementing the retry option.

bosse-online commented 1 year ago

Thank you @Michel-Verhoeven !! @romanzipp Can you merge it?

romanzipp commented 1 year ago

Released in 4.0. Thanks @Michel-Verhoeven !