Indexing
Cron - Quick Reference
8min
klevu adds multiple cron jobs to manage the registration of attributes and the indexing of entity data all cron tasks added by version 4 x of the klevu integration use the dedicated klevu cron group, allowing granular configuration of scheduling and run options we recommend using the native magento cron to run these jobs, configuring schedules if necessary, rather than a custom server side cron implementation of the cli command in a non production environment, you may not be running the cron you can trigger only the klevu cron jobs using the following command bin/magento cron\ run group klevu attribute discovery runs once a day as a fall back in case the addition or removal of any attributes was missed by our event observers and plugins module m2 indexing/etc/crontab xml \<job name="klevu indexing discover attributes" instance="klevu\indexing\cron\discoverattributes" method="execute"> \<schedule>52 1 \</schedule> \</job> attribute sync runs every 10 minutes (by default, the schedule is configurable in the admin) module m2 indexing/etc/crontab xml \<job name="klevu indexing sync attributes" instance="klevu\indexing\cron\syncattributes" method="execute"> \<config path>klevu/indexing/attribute cron expr\</config path> \</job entity discovery runs once a day as a fall back in case the addition or removal of any entities was missed by our event observers and plugins module m2 indexing/etc/crontab xml \<job name="klevu indexing discover entities" instance="klevu\indexing\cron\discoverentities" method="execute"> \<schedule>0 2 \</schedule> \</job> entity sync runs every 30 minutes (by default, the schedule is configurable in the admin) module m2 indexing/etc/crontab xml \<job name="klevu indexing sync entities" instance="klevu\indexing\cron\syncentities" method="execute"> \<config path>klevu/indexing/entity cron expr\</config path> \</job> entity sync history consolidation runs once a day to consolidate the days sync history into one database entry module m2 indexing/etc/crontab xml \<job name="klevu indexing sync history consolidation" instance="klevu\indexing\cron\synchistoryconsolidation" method="execute"> \<schedule>2 0 \</schedule> \</job> entity sync history consolidation clean runs once a day to remove sync history older than x days module m2 indexing/etc/crontab xml \<job name="klevu indexing sync history consolidation clean" instance="klevu\indexing\cron\synchistoryconsolidationclean" method="execute"> \<schedule>10 0 \</schedule> \</job>> number of days defaults to 7 and is configured in the admin klevu/indexing/remove indexing history after days