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.

Shell


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


Attribute Sync

Runs every 10 minutes (by default, the schedule is configurable in the admin)

module-m2-indexing/etc/crontab.xml


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


Entity Sync

Runs every 30 minutes (by default, the schedule is configurable in the admin)

module-m2-indexing/etc/crontab.xml


Entity Sync History Consolidation

Runs once a day to consolidate the days sync history into one database entry.

module-m2-indexing/etc/crontab.xml


Entity Sync History Consolidation Clean

Runs once a day to remove sync history older than x days.

module-m2-indexing/etc/crontab.xml


Number of days defaults to 7 and is configured in the admin klevu/indexing/remove_indexing_history_after_days