seven 5 days ago
parent
commit
c94d062b3e
1 changed files with 5 additions and 5 deletions
  1. 5 5
      app/Console/Kernel.php

+ 5 - 5
app/Console/Kernel.php

@@ -16,11 +16,11 @@ class Kernel extends ConsoleKernel
     protected function schedule(Schedule $schedule)
     {
         // $schedule->command('inspire')->hourly();
-        $schedule->job(new FiveSecondTaskJob)
-             ->cron('*/5 * * * * *') // 每秒的第0,5,10,15...秒执行
-             ->withoutOverlapping() // 防止重复执行
-             ->name('five-second-task') // 给任务起个名字
-             ->onOneServer();       // 如果在多服务器环境
+        // $schedule->job(new FiveSecondTaskJob)
+        //      ->cron('*/5 * * * * *') // 每秒的第0,5,10,15...秒执行
+        //      ->withoutOverlapping() // 防止重复执行
+        //      ->name('five-second-task') // 给任务起个名字
+        //      ->onOneServer();       // 如果在多服务器环境
     }
 
     /**