Closed johntiror closed 6 years ago
What version of Laravel are you using?
Try adding a dd(__FILE__)
call in the beginning of the defineConsoleSchedule()
function to ensure that it's running. It should get hit every time you just call php artisan
. That will tell you at least if the new scheduler is being registered.
I just saw that your Laravel version is in the issue title. I'm using it in a 5.5.23 project so I know that it's still working with the latest Laravel. Try what I said above to ensure that the console schedule is being injected properly.
It's running:
root@123:/var/www/html/app# php artisan schedule:run
"/var/www/html/soleranabot/app/Console/Kernel.php"
But still:
root@123:/var/www/html/app# php artisan schedule:run
[BadMethodCallException]
Method withoutOverlappingMultiServer does not exist.
use $schedule->command()
not $schedule->call()
- this package won't work with a callback.
Thanks, do you know how can I run my custom code inside a command()? I can't find any reference, it seems command() is only used for artisan commands. Thanks
Hi, I'm on Laravel 5.5.20. I followed the readme but I'm getting the error "Method withoutOverlappingMultiServer does not exist.". Here my code:
Any idea what I'm doing wrong?
thanks