When I run php artisan schedule:list
, the scheduled job exists. When I run php artisan queue:work
, the job runs successfully until it times out. But when I run php artisan schedule:work
the console says something like
2024-06-15 09:08:00 Running [AppJobsWordsDatamuseDatamuseAPIFetchResults] 15.90ms DONE
Which suggests the job has run successfully, but nothing actually happens? Here is my handle method:
public function handle(): void
{
Log::info('Fetching results from Datamuse API...');
echo "Fetching results from Datamuse API...";
$this->datamuse->fetchAllSoundsLike();
echo "Done";
}
I have tried adding a log message. When I run the scheduled job nothing gets logged?