Predefined Commerce Engine minions
The Sitecore Commerce Engine defines and uses the following minions described in this section:
NodeHeartBeatMinion is a management minion that allows the injection of business/dev-ops processes that must occur on a short-term, regular basis. It is set to run once per second, calling the
The index minions perform indexing tasks on Commerce entities (orders, customers and catalog items).
FullIndexMinion indexes all items a list. It runs on demand, calling the
IPrepareFullIndexMinionPipeline and the
IFullIndexMinionPipeline to perform indexing functions.
IncrementalIndexMinion watches for new items that need to be updated in the index. It runs every 3 minutes and calls the
IPrepareIncrementalIndexMinionPipeline and the
DeleteIndexDocumentsMinion watches a list. It runs every 3 minutes, calling the
IPrepareDeleteIndexDocumentsMinionPipeline and the
Other minions available out-of-the-box such as the
DeletedCustomersIndex and the
DeletedCatalogItemsIndex delete different entities lists from the search indexes.
PurgeCartsMinion runs as a maintenance process that deletes abandoned or empty carts from the database, after they have become eligible for deletion based on a predefined threshold.
PurgeCartsMinion watches a list of carts (
"ListToWatch": "Carts") and runs every 24 hours (
PurgeCartsPolicy determines the threshold (in number of days) after which empty or abandoned carts are deleted from the cart list. The following example shows the policy settings as defined in the sample
Plugin.AdventureWorks.CommerceMinions.json file (packaged as part of the Sitecore.Commerce.Engine.SDK).
Based on the above policy definition:
an abandoned cart becomes eligible for deletion after 14 days of inactivity.
an empty cart becomes eligible for deletion after 2 days of inactivity.
PurgeCartsMinion calls the
Commerce Orders minions
Order process minions play a key role in the overall order process flow, moving orders from list to list, as they transition from the initial pending status, to the final order completed status.