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 queue monitor shows an error for closure jobs #89

Closed danielzzz closed 2 years ago

danielzzz commented 2 years ago

this happens when dispatching a closure

dispatch(function () {
            Log::debug('dispatched from an anonymous function');
        });
ErrorException: class_parents(): Class Closure (WorkflowGenericController.php:149) does not exist and could not be loaded in /project/vendor/romanzipp/laravel-queue-monitor/src/Services/ClassUses.php:49

I wonder if there is a way to add some closure and still be able to monitor it...?

romanzipp commented 2 years ago

This will require a huge rework of the package since much of the logic is based on the IsMonitored Trait.

Sorry, I'm afraid this won't happen in the near future.