mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-28 17:04:06 +00:00
Laravel Vapor - Housekeeping
This commit is contained in:
+12
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user