Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed Jul 27, 2019
1 parent 814bc76 commit 4bf2157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Import/ImportFromDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function importFromFiles(array $options)
$this->fileSystem = new Filesystem();
foreach ($files as $file) {
$this->importFromFile($file, $importTemplate);
sleep(1);
}

return $files;
Expand Down
4 changes: 2 additions & 2 deletions Import/ParallelImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public function parallelImport(array $options)
$parallelLimit = $this->importModel->getParallelImportLimit();
$processSet = [];
for ($i = 0; $i < $parallelLimit; $i++) {
if (!$this->importModel->checkParallelImportLimit()) {
break;
if (!$this->importModel->getImportToProcess() || !$this->importModel->checkParallelImportLimit()) {
continue;
}
$builder = (new ProcessBuilder())
->setPrefix('php')
Expand Down

0 comments on commit 4bf2157

Please sign in to comment.