We have scheduled some tasks to run every 6 hours on production server.
In kernel.php
:
protected function schedule(Schedule $schedule)
{
$schedule->exec('some/command')
->cron('* */6 * * *');
}
I know that I can force this task to run if replacing the ->cron()
with ->everyMinute()
, and then run artisan schedule:run
. But is there another way to run this task so we don't have to mess with the code on a live server?
If there's no other solution we just have to wait 6 hours.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire