Inventory Import

The inventory import is one of the predefined pipelines (What is a pipeline?), which you can use after installing Pacemaker. There are sample files, which can be used as a template for your data files or testing purposes (see Run your first predefined import jobs). On this page, you will read how it works, how to configure, and how to customize this pipeline.

Components & Concept

Please refer to Import Processes for technical insights.

Pipeline Definition

The import pipeline contains the following steps:

Stage Step Description

Prepare

move_files

Move import files to the working directory of the current pipeline

Transformation

inventory_transformation

This step has a dummy executor in default and is designed to customize for mapping and transformation purpose

Pre-Import

index_suspender_start

Activates delta index suspending to avoid cron based re-indexing during the import

Import

inventory_import

Update inventory data

Post-Import

index_suspender_stop

Disable suspending of delta indexers

Configuration

In Magento’s backend (admin-ui) you’ll find settings for the price import under following path: Stores > Configuration > Pacemaker > Import > Inventory (stock) Import

config inventory import
Figure 1. Configuration Inventory Import
Configuration Description Default Value

General Settings > Source Directory

Defines the source directory for import files. This directory will be observerd by Pacemaker in oder to intialize a import pipeline. This setting is for all pacemaker imports.

var/pacemaker/import

Inventory (stock) Import > Enable Inventory Import Pipeline

Active toggle for the source directory observer for price import.

Yes

Inventory (stock) Import > File Name Pattern

Regular expression, which defines the source file name for source directory observer.

/(inventory)-import_(?P<identifier>[0-9a-z\-]*)([_0-9]*?).(csv|ok)/i