I scheduled a task but it doesn't invoke given callback like following code
public function registerSchedule($scheduler) {
\Log::debug('Scheduling task');
$scheduler->call(function(){
\Log::debug('i\'m inside');
})->everyMinute();
}
with above code it will always log "Scheduling task" but not "i'm inside" not sure why it isn't triggering callback function. There is no error thrown in logs. Can anyone please tell me in what cases this might happen? is it possible that other plugins are creating issues for callback?
So far i tried to debug and I saw that Schedule.php
of laravel framework has a protected property called events where this callback gets stored but when dueEvents is called events property is empty. So, completely confused on what's happening here.
any help is appreciated. thank you :)