Skip to content

Commit c11dd8a

Browse files
Update Kernel.php
1 parent 188b5fa commit c11dd8a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

app/Console/Kernel.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@
22

33
namespace App\Console;
44

5-
use Override;
65
use Illuminate\Console\Scheduling\Schedule;
76
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7+
use App\Jobs\ScanForDuplicatePersons;
88

99
class Kernel extends ConsoleKernel
1010
{
1111
/**
1212
* Define the application's command schedule.
1313
*/
14-
#[Override]
1514
protected function schedule(Schedule $schedule): void
1615
{
17-
// $schedule->command('inspire')->hourly();
16+
// Run duplicate scanning once a day (adjust frequency as needed)
17+
$schedule->job(new ScanForDuplicatePersons(0.7, 10))->daily();
1818
}
1919

2020
/**
2121
* Register the commands for the application.
2222
*/
23-
#[Override]
2423
protected function commands(): void
2524
{
2625
$this->load(__DIR__.'/Commands');

0 commit comments

Comments
 (0)