Explorar el Código

开启波次任务

LD hace 5 años
padre
commit
74ec3e2f93
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app/Console/Commands/SyncBatchTask.php

+ 3 - 1
app/Console/Commands/SyncBatchTask.php

@@ -257,7 +257,9 @@ sql;
                 }
                 }
             }
             }
         }
         }
-        //        $this->batchService->assignTasks($batches);
+
+         $this->batchService->assignTasks($batches);    //在这里为波次注册任务!
+
         ValueStore::query()->where("name","wave_detail_last_sync_date")->update(["value"=>$details[count($details)-1]->edittime]);
         ValueStore::query()->where("name","wave_detail_last_sync_date")->update(["value"=>$details[count($details)-1]->edittime]);
     }
     }