From fb96a9665fe60e3d29393970cec7d20c3fad1570 Mon Sep 17 00:00:00 2001 From: Jing Li Date: Sun, 28 Apr 2024 13:57:39 +0800 Subject: [PATCH] Update --- app/Console/Kernel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index a510075..fb92c9e 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -12,8 +12,8 @@ class Kernel extends ConsoleKernel */ protected function schedule(Schedule $schedule): void { - $schedule->command(Commands\TaskUpdateCommand::class)->hourly(); - $schedule->command(Commands\TaskLedgerGenerateCommand::class)->dailyAt('01:00'); + $schedule->command(Commands\TaskUpdateCommand::class)->hourly()->runInBackground(); + $schedule->command(Commands\TaskLedgerGenerateCommand::class)->dailyAt('01:00')->runInBackground(); // $schedule->call(fn() => logger('schedule running'))->everyMinute(); }