Does running php artisan on your command line shows your custom command in the list?
Taskscheduler 'No scheduled commands are ready to run.'
Hello,
I'm trying to run a scheduler on Ubuntu 18.04,
This is my Kernel.php
protected $commands = [
IntegrityCheck::class
];
protected function schedule(Schedule $schedule)
{
$schedule->command('integrity:check')->everyMinute();
}
My IntegrityCheck.php:
protected $signature = 'integrity:check';
public function handle(){
Log::info('This is running');
$this->info('Integrity Check Done');
}
My crontab:
* * * * * cd /home/me/Sites/testsite && php artisan schedule:run >> /home/me/output.txt
and all I get is:
No scheduled commands are ready to run.
The same task is working fine using Forge but not on my local environment.
I'm using ubuntu 18.04, laravel 5.8, php 7.3
Thank you for your help in advance
If you are having this problem from the command line, forget cron. Its a distraction.
If you have previously tried withoutOverlapping then you could have the mutex left behind so the scheduler is thinking it cannot start your task since an instance is already running.
This should be cleared by clearing the cache, but you say you tried this?
What sort of cache do you have?
If file based, anything in storage/framework/cache/data ?
Please or to participate in this conversation.