-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathKernel.php
38 lines (33 loc) · 1001 Bytes
/
Kernel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
use Override;
class Kernel extends ConsoleKernel
{
/**
* Define the application's command schedule.
*
* @return void
*/
#[Override]
protected function schedule(Schedule $schedule)
{
$schedule->command('moox:batchjob')->daily();
$schedule->command('moox:demojob')->hourly();
// $schedule->command('moox:failjob')->cron('0 */3 * * *'); // Every 3 minutes
// $schedule->command('moox:longjob')->cron('0 */45 * * *'); // Every 45 minutes
// $schedule->command('moox:timeoutjob')->cron('0 */20 * * *'); // Every 20 minutes
}
/**
* Register the commands for the application.
*
* @return void
*/
#[Override]
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}