Laravel Vapor - sync code from Shipping Portal

This commit is contained in:
Dillon Ngo
2024-10-07 21:55:22 +08:00
parent ad1ed6df60
commit ca790907ef
+24 -22
View File
@@ -41,33 +41,35 @@ class Kernel extends ConsoleKernel
->dailyAt('01:00')
->withoutOverlapping();
//cief todo: disable commands to avoid unintentional interfering with production starts
// $schedule->command('email-do-to-vt-command')
// ->dailyAt('10:00')
// ->withoutOverlapping();
if(env('APP_ENV') === 'production'){
//cief todo: disable commands to avoid unintentional interfering with production starts
// $schedule->command('email-do-to-vt-command')
// ->dailyAt('10:00')
// ->withoutOverlapping();
// $schedule->command('seasonal-segmant-company-remove-command')
// ->dailyAt('01:00')
// ->withoutOverlapping();
// $schedule->command('seasonal-segmant-company-remove-command')
// ->dailyAt('01:00')
// ->withoutOverlapping();
// $schedule->command('delete-bulk-download-files-command')
// ->hourly()
// ->withoutOverlapping();
// $schedule->command('delete-bulk-download-files-command')
// ->hourly()
// ->withoutOverlapping();
// $schedule->command('new-user-registration-expire-check-command')
// //->dailyAt('23:55') //cief todo: original, to be reverted back to this
// ->everyFifteenMinutes()
// ->withoutOverlapping();
// $schedule->command('new-user-registration-expire-check-command')
// //->dailyAt('23:55') //cief todo: original, to be reverted back to this
// ->everyFifteenMinutes()
// ->withoutOverlapping();
// $schedule->command('booking-expired-command')
// ->dailyAt('02:00')
// ->withoutOverlapping();
//cief todo: disable commands to avoid unintentional interfering with production ends
// $schedule->command('booking-expired-command')
// ->dailyAt('02:00')
// ->withoutOverlapping();
//cief todo: disable commands to avoid unintentional interfering with production
// DISABLED BY DEFAULT
// $schedule->command('purchase-order-autofill-command')
// ->dailyAt('03:00')
// ->withoutOverlapping();
// DISABLED BY DEFAULT
// $schedule->command('purchase-order-autofill-command')
// ->dailyAt('03:00')
// ->withoutOverlapping();
}
}
//Commands Version 1: Before Laravel Vapor/AWS
else{