From 7e290eefb2b313ea6eda44c72c6f0da9a78036c4 Mon Sep 17 00:00:00 2001 From: Melissa Alvarez Date: Thu, 24 Sep 2020 14:20:06 -0600 Subject: [PATCH] update job finished check --- .../components/create_step_footer/create_step_footer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/create_step_footer/create_step_footer.tsx b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/create_step_footer/create_step_footer.tsx index 8306c5a39a88d18..bfa63e21e6c94eb 100644 --- a/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/create_step_footer/create_step_footer.tsx +++ b/x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/create_step_footer/create_step_footer.tsx @@ -84,8 +84,8 @@ export const CreateStepFooter: FC = ({ jobId, jobType, showProgress }) => clearInterval(interval); // Check job has started. Jobs that fail to start will also have STOPPED state setJobFinished( - jobStats.state === DATA_FRAME_TASK_STATE.STOPPED && - progressStats.currentPhase === progressStats.totalPhases + progressStats.currentPhase === progressStats.totalPhases && + progressStats.progress === 100 ); } } else {