File: D:/HostingSpaces/SBogers10/ste.komma.pro/app/Console/Kernel.php
<?php
namespace App\Console;
use App\Console\Commands\GetTrainingsFromC4;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
GetTrainingsFromC4::class
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
$schedule->command('training:import')->hourly();
//Run the queue listener every hour, if it is still running, do nothing
// $schedule->command('queue:work')->hourly()->withoutOverlapping()->after(function() {
// \Log::debug('Cron / Kernel: php artisan queue:work executed');
// });
// $schedule->command('kms:housekeeper')->dailyAt('04:00')->after(function() {
// \Log::debug('Cron / Kernel: php artisan kms:housekeeper executed');
// }); //Does housekeeping. Cleaning up old stuff and such.
// $schedule->command('shop:catalog')->dailyAt('03:00')->after(function() {
// \Log::debug('Cron / Kernel: php artisan shop:catalog executed');
// }); //Update the shop catalog index
}
}