Model/Importer.php
public function _checkImportStatus()
    {
        if ($items = $this->_getImportingItems($this->bulkSyncLimit)) {
            foreach ($items as $item) {
                $websiteId = $item->getWebsiteId();
                $client = false;
                if ($this->helper->isEnabled($websiteId)) {
                    $client = $this->helper->getWebsiteApiClient(
                        $websiteId
                    );
                }
                if ($client) {
                    try {
                        if ($item->getImportType() == self::IMPORT_TYPE_CONTACT ||
                            $item->getImportType() == self::IMPORT_TYPE_SUBSCRIBERS ||
                            $item->getImportType() == self::IMPORT_TYPE_GUEST
                        ) {
                            $response = $client->getContactsImportByImportId($item->getImportId());
                        } else {
                            $response = $client->getContactsTransactionalDataImportByImportId(
                                $item->getImportId()
                            );
                        }
                    } catch (\Exception $e) {
                        $item->setMessage($e->getMessage())
                            ->setImportStatus(self::FAILED);
                        $this->saveItem($item);
                        continue;
                    }

                    $this->processResponse($response, $item, $websiteId);
                }
            }
        }
    }
public function _checkImportStatus()
    {
        if ($items = $this->_getImportingItems($this->bulkSyncLimit)) {
            foreach ($items as $item) {
                $websiteId = $item->getWebsiteId();
                $client = false;
                if ($this->helper->isEnabled($websiteId)) {
                    $client = $this->helper->getWebsiteApiClient(
                        $websiteId
                    );
                }
                if ($client) {
                    try {
                        if ($item->getImportType() == self::IMPORT_TYPE_CONTACT ||
                            $item->getImportType() == self::IMPORT_TYPE_SUBSCRIBERS ||
                            $item->getImportType() == self::IMPORT_TYPE_GUEST
                        ) {
                            $response = $client->getContactsImportByImportId($item->getImportId());
                        } else {
                            $response = $client->getContactsTransactionalDataImportByImportId(
                                $item->getImportId()
                            );
                        }
                    } catch (\Exception $e) {
                        $item->setMessage($e->getMessage())
                            ->setImportStatus(self::FAILED);
                        $this->saveItem($item);
                        continue;
                    }

                    $this->processResponse($response, $item, $websiteId);
                }
            }
        }
    }
public function _checkImportStatus ( ) { if ( $ items = $ this -> _getImportingItems ( $ this -> bulkSyncLimit ) ) { foreach ( $ items as $ item ) { $ websiteId = $ item -> getWebsiteId ( ) ; $ client = false ; if ( $ this -> helper -> isEnabled ( $ websiteId ) ) { $ client = $ this -> helper -> getWebsiteApiClient ( $ websiteId ) ; } if ( $ client ) { try { if ( $ item -> getImportType ( ) == self :: IMPORT_TYPE_CONTACT || $ item -> getImportType ( ) == self :: IMPORT_TYPE_SUBSCRIBERS || $ item -> getImportType ( ) == self :: IMPORT_TYPE_GUEST ) { $ response = $ client -> getContactsImportByImportId ( $ item -> getImportId ( ) ) ; } else { $ response = $ client -> getContactsTransactionalDataImportByImportId ( $ item -> getImportId ( ) ) ; } } catch ( \ Exception $ e ) { $ item -> setMessage ( $ e -> getMessage ( ) ) -> setImportStatus ( self :: FAILED ) ; $ this -> saveItem ( $ item ) ; continue ; } $ this -> processResponse ( $ response , $ item , $ websiteId ) ; } } } }
Check importing status for pending import.

@return null
Check importing status for pending import .