HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/pietvanmierlo/stempelbv.nl/app/Console/Kernel.php
<?php

namespace App\Console;

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 = [
    ];

    /**
     * Define the application's command schedule.
     *
     * @param  \Illuminate\Console\Scheduling\Schedule $schedule
     * @return void
     */
    protected function schedule(Schedule $schedule)
    {
        //Run the queue listener every hour, if it is still running, do nothing
        $schedule->command('queue:listen')->hourly()->withoutOverlapping()->after(function() {
            \Log::debug('Cron / Kernel: php artisan queue:listen 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.

    }
}