We have consolidated our instructions for configuring Klevu data synchronization with Magento 2. Please click here for the most up to date instructions: Magento 2 Data Sync Overview
In case of larger product catalogs, from lots of processes relying on Magento cron, sometimes klevu cron keeps on running all the time or will be in a queue because of other module crons. To avoid this, as an alternative, one can setup an external shell script that runs independently of Magento cron. Follow the steps below to setup external script in Magento 2:
- Login into Magento Admin Panel.
- Please setup the below command to execute as an independent CRON Job every 30 minutes.
php bin/magento klevu:syncdata --updatesonlyNote:Please note, when the product sync is running, Klevu Magento 2 plugin creates a temporary lock file inside <magento-root-folder>/ var folder to avoid executing multiple copies of Klevu's product sync at the same time. Please make sure that the folder has enough permission to create the file.
- Go to Stores → Configuration. Open Search Configuration under Klevu
- Select option Never for Frequency under Data sync settings (the option is visible at default config level)
- Click on Save Config.