From a6e0f92c7a233ab690c8699232532e229b4d040a Mon Sep 17 00:00:00 2001 From: Dima Arnautov Date: Thu, 22 Jul 2021 10:42:46 +0200 Subject: [PATCH] [ML] fix job and datafeed states check --- x-pack/plugins/ml/server/lib/alerts/jobs_health_service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/ml/server/lib/alerts/jobs_health_service.ts b/x-pack/plugins/ml/server/lib/alerts/jobs_health_service.ts index 146de4d1828b4..63ca23b424851 100644 --- a/x-pack/plugins/ml/server/lib/alerts/jobs_health_service.ts +++ b/x-pack/plugins/ml/server/lib/alerts/jobs_health_service.ts @@ -106,7 +106,7 @@ export function jobsHealthServiceProvider( }) .filter( (datafeedStat) => - datafeedStat.state !== 'started' && datafeedStat.job_state !== 'opened' + datafeedStat.state !== 'started' || datafeedStat.job_state !== 'opened' ); } },