The use_application_lock indexing mode is used to enable the automatic re-indexing process and can be enabled using the app/etc/env.php file. This mode returns a more accurate status of the indexers. The status is available on the indexer grid in the Magento Admin.
If an indexer fails, Magento will now see this and the cronjob will pick up the indexer to try it again. Without this mode, it is necessary to manually reset the indexer when it failed.
So, we need to write the following code in the env.php file to enable the use_application_lock indexing mode.
Code
<?php
return [
'indexer' => [
'use_application_lock' => true
]
];
Comentários