Laravel Vapor - Debug

This commit is contained in:
Dillon Ngo
2024-10-07 21:32:50 +08:00
parent 712d122d4a
commit 033b6a4c26
2 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -2,7 +2,6 @@
namespace App\Classes\Jobs\Commands\V2;
use App\Classes\General\LogHelper;
use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
@@ -21,7 +20,7 @@ class DummyJob implements ShouldQueue
Log::info(Carbon::now() . ': Start job - Dummy.');
$start = new Carbon();
LogHelper::channel('storage_invoices')->info('Testing writing logs');
$end = new Carbon();
$elapsedTime = $start->diff($end)->format('%H:%I:%S');
+3 -3
View File
@@ -30,9 +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('dummy-command')
// ->everyFiveMinutes()
// ->withoutOverlapping();
$schedule->command('housekeeping-s3-files-command')
->dailyAt('01:00')