User Tools

Site Tools


urapidflow:v3:run_scheduled

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
urapidflow:v3:run_scheduled [2018/11/14 19:42]
wtsergo
urapidflow:v3:run_scheduled [2019/10/17 07:28]
wtsergo
Line 34: Line 34:
 /** @var \Magento\Framework\ObjectManager\ConfigLoaderInterface $configLoader */ /** @var \Magento\Framework\ObjectManager\ConfigLoaderInterface $configLoader */
 $configLoader = $om->get('Magento\Framework\ObjectManager\ConfigLoaderInterface'); $configLoader = $om->get('Magento\Framework\ObjectManager\ConfigLoaderInterface');
-$om->configure($configLoader->load($areaCode));+ 
 +$omCfgLoaded = $configLoader->load($areaCode)
 +if ($configLoader instanceof \Magento\Framework\App\ObjectManager\ConfigLoader\Compiled) { 
 +    $pfsDiVal = @$omCfgLoaded['arguments']['Magento\Catalog\Model\Indexer\Product\Flat\State']; 
 +    if (is_array($pfsDiVal) && isset($pfsDiVal['isAvailable']) && is_array($pfsDiVal['isAvailable'])) { 
 +        $pfsDiVal['isAvailable']['_v_'] = false; 
 +    } elseif (!is_array($pfsDiVal)) { 
 +        $pfsDiVal = @unserialize($pfsDiVal); 
 +        if (!is_array($pfsDiVal)) { 
 +            $pfsDiVal = []; 
 +        } 
 +        $pfsDiVal['isAvailable'] = false; 
 +        $pfsDiVal = serialize($pfsDiVal); 
 +    } 
 +    $omCfgLoaded['arguments']['Magento\Catalog\Model\Indexer\Product\Flat\State'] = $pfsDiVal; 
 +} else { 
 +    $omCfgLoaded['Magento\Catalog\Model\Indexer\Product\Flat\State']['arguments']['isAvailable'] = false; 
 +
 + 
 +$om->configure($omCfgLoaded);
  
 function rfEavExport(ObjectManagerInterface $om) function rfEavExport(ObjectManagerInterface $om)
Line 60: Line 79:
     /** @var \Unirgy\RapidFlow\Helper\Data $helper */     /** @var \Unirgy\RapidFlow\Helper\Data $helper */
     $helper = $om->get('\Unirgy\RapidFlow\Helper\Data');     $helper = $om->get('\Unirgy\RapidFlow\Helper\Data');
-    $helper->run($profile);+    $helper->run($profile, true, ['keep_session'=>true]);
 } }
  
urapidflow/v3/run_scheduled.txt · by wtsergo