Skip to content

Commit fa4fca1

Browse files
committed
ACPT:99 Import API Parallelization
1 parent c0a77fd commit fa4fca1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/ImportExport/Model/Import/AbstractEntity.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Magento\ImportExport\Model\Import;
1515
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingError;
1616
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
17+
use Magento\ImportExport\Model\Import\Source\Base64EncodedCsvData;
1718
use Magento\ImportExport\Model\ImportFactory;
1819
use Magento\ImportExport\Model\ResourceModel\Helper;
1920
use Magento\Store\Model\ScopeInterface;
@@ -420,7 +421,7 @@ protected function _saveValidatedBunches()
420421
$startNewBunch = false;
421422

422423
$source->rewind();
423-
if ($this->ids) {
424+
if ($source instanceof Base64EncodedCsvData) {
424425
$this->_dataSourceModel->cleanProcessedBunches();
425426
} else {
426427
$this->_dataSourceModel->cleanBunches();

app/code/Magento/ImportExport/Model/Import/Entity/AbstractEntity.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Magento\ImportExport\Model\Import as ImportExport;
1414
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingError;
1515
use Magento\ImportExport\Model\Import\ErrorProcessing\ProcessingErrorAggregatorInterface;
16+
use Magento\ImportExport\Model\Import\Source\Base64EncodedCsvData;
1617

1718
/**
1819
* Import entity abstract model
@@ -394,7 +395,7 @@ protected function _saveValidatedBunches()
394395
$skuSet = [];
395396

396397
$source->rewind();
397-
if ($this->ids) {
398+
if ($source instanceof Base64EncodedCsvData) {
398399
$this->_dataSourceModel->cleanProcessedBunches();
399400
} else {
400401
$this->_dataSourceModel->cleanBunches();

0 commit comments

Comments
 (0)