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

Laravel Excel compatibility #98

Closed jeroen-hso closed 1 year ago

jeroen-hso commented 2 years ago

Hi, I would like to use your package to monitor Excel imports. Are there known issues between Laravel Excel and this package? I have implemented ShouldQueue and IsMonitored, but jobs are not visible in your monitor (success and failed jobs)

https://docs.laravel-excel.com/3.1/imports/queued.html

Thanks in advance for your help.

romanzipp commented 2 years ago

Could you try adding the following method to the job:

public function failed(Throwable $e) 
{
    parent::failed($e);
    throw $e;
}
jeroen-hso commented 2 years ago

Hi Roman,

Thanks for your help. When I add this method I get two intelephense errors and import aborts with the following error message:

Cannot use "parent" when current class scope has no parent