jeudi 24 octobre 2019

Force all tasks to run when executing artisan schedule:run

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.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/31Mrltf
via IFTTT

Aucun commentaire:

Enregistrer un commentaire