I try to run schedule on Laravel 5. Its work fine when I run this:
$schedule->call(function() {
// do something here..
})->everyMinute();
But when I add withoutOverlapping()
, the scheduler never run the task:
$schedule->call(function () {
// do something here..
})->everyMinute()->name('job_name')->withoutOverlapping();
*these schedule code is written at /app/Console/Kernel.php
The order is important, but it was never mentioned.
Try this
This is how it worked for me:
when you mess around with the order you can get errors like
or