Unable to run scheduled commands in Laravel until I clear cache

3.7k views Asked by At

php artisan schedule:run gives me error after rebooting OS (Ubuntu).

No scheduled commands are ready to run

I can run this command many times and it does not start any commands.

BUT when I execute php artisan cache:clear all works as expected till next reboot.

What can be the reason?

.env has

CACHE_DRIVER=redis
1

There are 1 answers

1
Hamza Dairywala On

You can write this command in schedular like -:

Artisan::call('config:cache');