请问使用任务调度中 出现 no scheduled commands are ready to run 是什么原因
使用任务调度之前,我做了以下操作
crontab -e
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
想实现每周通知用户的一个功能,发现使用 everyMinute() 方法是可以运行:
php artisan schedule:run
打印以下结果:
Running scheduled command: '/www/server/php/73/bin/php' 'artisan' user:notify > '/dev/null' 2>&1
但使用weekly()方法,或者其他时间方法,都会出现:
no scheduled commands are ready to run
在网上查了一天,还没有解决这个问题
这个需要解决吗,,,到了那个时候,自然就会运行啊,,,