imTigger / laravel-job-status

Add ability to track Job progress, status and result dispatched to Queue.
MIT License
407 stars 60 forks source link

FatalErrorException, laravel worker can't start because of this package. #59

Closed AidasK closed 4 years ago

AidasK commented 4 years ago
Symfony\Component\Debug\Exception\FatalErrorException: method_exists(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "App\Jobs\LogVwoEvent" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide an autoloader to load the class definition
#0 /vendor/imtigger/laravel-job-status/src/JobStatusUpdater.php(73): null

I have an old job in laravel queue which has dependencies of removed class LogVwoEvent. Because of this laravel worker fails to start, because laravel-job-status can not handle this error. Without this package laravel would discard this job without any issues.

imTigger commented 4 years ago

PR merged, thanks you for contributing