diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index e2811174..b25aaba0 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -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