lundi 17 décembre 2018

Task Schedule is only running once Laravel

I'm having a problem with the Task Schedule because it's only running once and I want to run it every minute. I have checked some posts in StackOverflow, but no one has helped me to solve the problem.

I added correctly my artisan path to the crontab and I'm sending a ping to the URL and it's showing it only once and it's not being repeated every minute as it's in my code.

What could be causing this problem?

This is my Kernel.php

protected $commands = [
    CountProfit::class
];

/**
 * Define the application's command schedule.
 *
 * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
 * @return void
 */
protected function schedule(Schedule $schedule)
{
    $schedule
        ->command('count:profit')
        ->everyMinute()
        ->thenPing("https://cronhub.io/ping/61d30020-021e-11e9-a3d6-7babf34214bf"); 
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire