Cron Jobs

This topic describes the purpose of every cron job that is being used in the replication process and the area it covers.

Cron Job Description
repl_item: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_item flat table of the Magento database. The job uses the ReplEcommItems function of the Commerce Replication APIs to fetch all the data related to the items. Any item created, modified, or deleted will be included in this API response.
repl_price: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_price flat table of the Magento database. The job uses the ReplEcommPrices function of the Commerce Replication APIs to fetch all the data related to item prices. Any item price created, modified, or deleted will be included in this API response.
repl_inv_status: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_inv_status flat table of the Magento database. The job uses the ReplEcommInventoryStatus function of the Commerce Replication APIs to fetch all data related to item inventories. Any data related to an inventory will be included in this API response.
repl_barcode: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_barcode flat table of the Magento database. The job uses the ReplEcommBarcodes function of the Commerce Replication APIs to fetch all data related to item barcodes.
repl_extended_variant_value: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_extended_variant_value flat table of the Magento database. The job uses the ReplEcommExtendedVariants function of the Commerce Replication APIs to fetch all data related to item variants.
repl_image_link: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_image_link flat table of the Magento database. The job uses the ReplEcommImageLinks function of the Commerce Replication APIs to fetch all data related to the images.
This web service brings the list of all image links for items, variants, stores, and categories of the selected web store. Any image added, modified, or removed against all the areas of the store will be included in this API response.
repl_item_variant_registration: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_item_variant_registration flat table of the Magento database. The job uses the ReplEcommItemVariantRegistrations function of the Commerce Replication APIs to fetch all data related to item variants. Any variant created, modified, or deleted will be included in this API response.
repl_hierarchy: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_hierarchy flat table of the Magento database. The job uses the ReplEcommHierarchy function of the Commerce Replication APIs to fetch all data related to store hierarchies.
repl_hierarchy_node: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_hierarchy_node flat table of the Magento database. The job uses the ReplEcommHierarchyNode function of the Commerce Replication APIs to fetch all data related to the Hierarchy nodes.
repl_hierarchy_leaf: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_hierarchy_leaf flat table of the Magento database. The job uses the ReplEcommHierarchyLeaf function of the Commerce Replication APIs to fetch all data related hierarchy leaves.
repl_attribute: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_attribute flat table of the Magento database. The job uses the ReplEcommAttribute function of the Commerce Replication APIs to fetch all data related to attributes. Any attribute created, modified, or deleted will be included in this API response.
repl_attribute_value: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_attribute_value flat table of the Magento database. The job uses the ReplEcommAttributeValue function of the Commerce Replication APIs to fetch all data related to the attributes values assigned to items. Any new attribute value assigned to any product will be included in this API response.
repl_attribute_option_value: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_attribute_option_value flat table of the Magento database. The job uses the ReplAttributeOptionValue function of the Commerce Replication APIs to fetch all data related to attribute values and their sequence in the listing. Any attribute option created, modified, or deleted will be included in this API response.
repl_discount: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_discount flat table of the Magento database. The job uses the ReplEcommDiscounts function of the Commerce Replication APIs to fetch all data related to discounts. Any new discount created, modified, deleted, enabled, or disabled will be included in this API response.
repl_item_category: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_item_category flat table of the Magento database. The job uses the ReplEcommItemCategories function of the Commerce Replication APIs to fetch all data related to item categories. Any category created, modified, or deleted will be included in this API response.
repl_product_group: This job runs every 2 minutes. The purpose of this job is to replicate all data from LS Commerce and store the data in the ls_replication_repl_product_group flat table of the Magento database. The job uses the ReplEcommProductGroups function of the Commerce Replication APIs to fetch all data related to product groups.
repl_store: This job runs every 2 minutes. The purpose of this job is to replicate all the data from LS Commerce and store the data in the ls_replication_repl_store flat table of the Magento database. The job uses the ReplEcommStores function of the Commerce Replication APIs to fetch all data related to stores. Any changes related to a store will be included in this API response.
repl_attributes: This job runs every 5 minutes. The purpose of this cron job is to fetch all the data related to attributes in the flat tables and process the data in Magento. This cron job fetches all new or updated data from ls_replication_repl_extended_variant_value, ls_replication_repl_attribute, and ls_replication_repl_attribute_option_value and processes the data in Magento as Product Attributes. Status of the cron job will be Pending, unless the job processes all the values in those tables and sets status as Processed.
repl_category: This job runs every 5 minutes. The purpose of this cron job is to process all data related to product categories. This cron picks all new or updated data from the ls_replication_repl_hierarchy_node table, and creates or updates categories in Magento based on the information in there. Status of the cron job will be Pending, unless the job processes all the values in those tables and sets the status as Processed.
repl_products: This job runs every 5 minutes. This is the most important cron job in the system which summarize the replication of products and create it in Magento. This cron pick data from multiple tables related to item and variants and process it in the Magento. This cron has explicit dependency on other cron jobs which means it will only run once the status of its dependent job is set to ‘Complete’.
repl_discount_create: This job runs every 5 minutes. The purpose of this cron job is to process all data related to discounts and create catalog rules in Magento against the data. This cron picks all new or updated data from the ls_replication_repl_discount table, and creates or updates catalog rules in Magento based on the information in there.
repl_price_sync: This job runs every 5 minutes. The purpose of this cron job is to process all data related to prices in Magento. This cron picks all new or updated data from the ls_replication_repl_price table and updates product prices in Magento.
repl_inventory_sync: This job runs every 5 minutes. The purpose of this cron job is to process all data related to product inventories in Magento. This cron picks all new or updated data from the ls_replication_repl_inv_status table, and updates product inventories in Magento.
repl_item_updates_sync: This job runs every 5 minutes. The purpose of this cron job is to process all data related to products assignment to categories in Magento. This cron picks all new or updated data from the ls_replication_repl_hierarchy_leaf table, and updates the data in Magento.
repl_attributes_value_sync: This job runs every 5 minutes. The purpose of this cron job is to synchronize the data of newly created attributes and assign the data to products. This cron picks all new or updated data from the ls_replication_repl_attribute_value table, and updates the data in Magento against the affected items.
repl_item_images_sync: This job runs every 5 minutes. The purpose of this cron job is to process all data related to product images in Magento. This cron picks all new or updated data from the ls_replication_repl_image_link table that are related to Item or Item Variants and process those images in Magento against its respective products.
repl_inv_status_reset: This job runs once a day at 00:00 hours. The purpose of this cron job is to reset the replication counter of the repl_inv_status cron back to zero so that it can fetch all the new data from LS Central related to the inventory for that day. The reason is that there may be lots of offline inventories being sold that may not be updated in Magento.
repl_price_status_reset: This job runs once a day at 00:00 hours. The purpose of this cron job is to reset the replication counter of repl_price cron back to zero so that it can fetch the best price of the day for all the products.
repl_discount_status_reset: This job runs once a day at 00:00 hours. The purpose of this cron job is to reset the replication counter of repl_discount cron back to zero so that it can fetch all Discounts of the day from LS Central to be processed in Magento.
sync_version: This job runs once a week. The purpose of this cron job is to automatically synchronize the version of LS Central and LS Commerce (if updated) in the Magento configuration database. The version values are used to cater to specific requirements in the integration to support customization done against each LS Central version.