Refactor Magento_Indexer module so that the "indexer_reindex_all_invalid" cronjob and "bin/magento indexer:reindex" command use the same code #29297
Labels
Event: MageCONF CD 2020
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Triage: Dev.Experience
Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Summary (*)
This was discovered while working on #29196
The cronjob
indexer_reindex_all_invalid
(Magento\Indexer\Model\Processor::reindexAllInvalid) and manually executingbin/magento indexer:reindex {all-invalid-indexers}
(Magento\Indexer\Console\Command\IndexerReindexCommand::execute) should execute the exact same thing.Currently both those entry points have separate codebases for executing their logic which can lead to subtle inconsistencies if only one of both codebases are touched.
We should try to refactor the code into one shared codebase for both entry points.
Examples
It looks like this (probably) accidentally happened at least once in MAGETWO-51540
Proposed solution
@rogyar proposed the following solution:
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: