Skip to content

Commit c984ec3

Browse files
committed
AC-13810: Customer Grid indexer does not work properly in Update by Schedule mode
1 parent d253a44 commit c984ec3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Customer/Model/Customer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,8 @@ public function resetErrors()
11021102
*/
11031103
public function afterSave()
11041104
{
1105-
if ($this->getIndexer()->getState()->getStatus() == StateInterface::STATUS_VALID) {
1105+
$indexer = $this->getIndexer();
1106+
if (($indexer->getState()->getStatus() == StateInterface::STATUS_VALID) && !$indexer->isScheduled()) {
11061107
$this->_getResource()->addCommitCallback([$this, 'reindex']);
11071108
}
11081109
return parent::afterSave();

0 commit comments

Comments
 (0)