Laravel-Queue-Monitor icon indicating copy to clipboard operation
Laravel-Queue-Monitor copied to clipboard

Laravel Excel compatibility

Open jeroen-hso opened this issue 3 years ago • 2 comments

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.

jeroen-hso avatar Jul 26 '22 13:07 jeroen-hso

Could you try adding the following method to the job:

public function failed(Throwable $e) 
{
    parent::failed($e);
    throw $e;
}

romanzipp avatar Jul 29 '22 05:07 romanzipp

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

jeroen-hso avatar Jul 30 '22 06:07 jeroen-hso