techdivision/indexsuspender

There is no license information available for the latest version (0.5.3) of this package.

Allows to suspend regular indexing processes during a specific task.

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 12

Watchers: 10

Forks: 4

Open Issues: 6

Type:magento2-module

0.5.3 2018-06-29 12:57 UTC

This package is auto-updated.

Last update: 2024-11-11 04:03:23 UTC


README

This Magento 2 module suspends delta indexing while a full re-indexation is running. It also provides an interface in order to stop indexations within your custom implementations.

interface IndexSuspenderInterface
{
    /**
     * Suspends all related indexing processes.
     * If the request / cli process finishes, the suspender will be removed automatically.
     *
     * @return void
     */
    public function suspend();

    /**
     * Resumes all suspended indexing processes.
     *
     * @return void
     */
    public function resume();

    /**
     * Suspends all related indexing processes.
     * If the request / cli process finishes, the suspender will not be removed automatically.
     *
     * @param string $externalKey
     * @return void
     */
    public function suspendExternal($externalKey);

}

Command line interface

This module provides some bin/magento commands in order to control and monitor the index suspending.

suspend
 suspend:index:list         List current index suspender ids
 suspend:index:resume-all   Resume all currently suspended indexes.

Backend integration

You can see and unlock given indexer locks within the Index Management tab.

Backend integration

Installation

composer require techdivision/indexsuspender