main
Jing Li 2024-04-28 13:57:39 +08:00
parent 9b848dbc2c
commit fb96a9665f
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}