Laravel Vapor - Housekeeping

This commit is contained in:
Dillon Ngo
2024-09-26 06:53:50 +08:00
parent 3e888c7c08
commit c4bbff232d
+12 -7
View File
@@ -30,13 +30,9 @@ class Kernel extends ConsoleKernel
//Commands Version 2: Laravel Vapor with AWS
$isEnabled = env('COMMANDS_V2_ENABLED', false);
if($isEnabled){
$schedule->command('dummy-command')
->everyFiveMinutes()
->withoutOverlapping();
$schedule->command('process-delayed-jobs-command')
->everyFiveMinutes()
->withoutOverlapping();
// $schedule->command('dummy-command')
// ->everyFiveMinutes()
// ->withoutOverlapping();
$schedule->command('housekeeping-s3-files-command')
->dailyAt('01:00')
@@ -78,6 +74,15 @@ class Kernel extends ConsoleKernel
$schedule->command('permits-reminder-send-command')
->dailyAt('09:30')
->withoutOverlapping();
$schedule->command('process-delayed-jobs-command')
->everyFiveMinutes()
->withoutOverlapping();
}
else if (env('APP_ENV') === 'development'){
$schedule->command('process-delayed-jobs-command')
->everyTwoHours()
->withoutOverlapping();
}
}
//Commands Version 1: Before AWS