]> _ Git - pmi.git/commitdiff
wait #3605 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Apr 2020 18:53:26 +0000 (20:53 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Apr 2020 18:53:26 +0000 (20:53 +0200)
app/Console/Kernel.php

index 45f14ca4c79dc881e38aa56644fb7c75433cb07a..1f5aeaebb4b135309b46d3d9d679ddeb0d5bfc87 100644 (file)
@@ -19,13 +19,15 @@ class Kernel extends ConsoleKernel
     /**
      * Define the application's command schedule.
      *
-     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule
+     * @param \Illuminate\Console\Scheduling\Schedule $schedule
      * @return void
      */
     protected function schedule(Schedule $schedule)
     {
         $schedule->command('backup:clean')->daily()->at('04:00');
         $schedule->command('backup:run')->daily()->at('05:00');
+        $schedule->command('cubist:search:index', ['PMI', 'all'])->cron('35 */4 * * *');
+        $schedule->command('cubist:search:index', ['MICHSCI', 'all'])->cron('5 */4 * * *');
     }
 
     /**
@@ -35,7 +37,7 @@ class Kernel extends ConsoleKernel
      */
     protected function commands()
     {
-        $this->load(__DIR__.'/Commands');
+        $this->load(__DIR__ . '/Commands');
 
         require base_path('routes/console.php');
     }