I have a Laravel Scheduled job that is defined Kernel.phpas
$schedule->call('\App\Http\Controllers\ScheduleController@processQueuedMessages')
->everyFiveMinutes()
->name('process_queued_messages')
->withoutOverlapping();
During development, my work threw an exception due to a syntax error. I fixed the error and tried to execute it again; but for some reason it will not.
I tried artisan downand then artisan up. I also tried restarting the server instance. But nothing would help. The work simply did not work (there was no exception either).
I understand what the problem is with ->withoutOverlapping(). One way or another, the Laravel scheduler believes that the work is already running and therefore does not execute it again.
source
share