You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FEATURE: Introduce threshold for failed jobs for index switching
This change introduces a new setting to set a number of accepted failed jobs.
The index is only switched if not more than the configured number of
failed jobs occure in the queue.
$this->log(sprintf('action=indexing step=index-switched alias=%s message="Index was switched successfully"', $this->indexPostfix), LOG_NOTICE);
70
+
} else {
71
+
$this->log(sprintf('action=indexing step=index-switched alias=%s message="Index was not switched due to %s failed batches in the current queue"', $this->indexPostfix, $queue->countFailed()), LOG_ERR);
72
+
}
66
73
67
74
returntrue;
68
75
}
@@ -86,4 +93,21 @@ public function getLabel(): string
0 commit comments