Add command to view mview state and queue
This is similar to the magerun1 command here: https://github.com/netz98/n98-magerun/pull/891 I like the ability to view the mview queue in realtime as its being processed, it can be quite helpful when debugging indexing issues. This command will actually show how many items are in the list pending processing, as well information from the `mview_state` table. ``` php bin/magento indexer:status:mview +---------------------------+----------+--------+---------------------+------------+---------+ | ID | Mode | Status | Updated | Version ID | Backlog | +---------------------------+----------+--------+---------------------+------------+---------+ | catalog_category_product | enabled | idle | 2017-11-02 10:00:00 | 1 | 0 | | catalog_product_attribute | enabled | idle | 2017-11-02 10:00:00 | 1 | 1 | | catalog_product_category | disabled | idle | 2017-11-02 10:00:00 | 1 | 0 | | catalog_product_price | enabled | idle | 2017-11-02 10:00:00 | 1 | 0 | +---------------------------+----------+--------+---------------------+------------+---------+ ``` I'll point this PR into 2.1.x and raise a separate PR to pop it into 2.2.x.
Showing
- app/code/Magento/Indexer/Console/Command/IndexerStatusMviewCommand.php 95 additions, 0 deletions...nto/Indexer/Console/Command/IndexerStatusMviewCommand.php
- app/code/Magento/Indexer/Test/Unit/Console/Command/IndexerStatusMviewCommandTest.php 233 additions, 0 deletions...st/Unit/Console/Command/IndexerStatusMviewCommandTest.php
- app/code/Magento/Indexer/etc/di.xml 1 addition, 0 deletionsapp/code/Magento/Indexer/etc/di.xml
Please register or sign in to comment