Skip to content

Commit ac8b851

Browse files
[ML] DF Analytics creation: ensure job did not fail to start before showing results link (#78200)
* ensure job did not fail to start before showing results link * simplify job started check * update job finished check
1 parent 6f1b690 commit ac8b851

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

x-pack/plugins/ml/public/application/data_frame_analytics/pages/analytics_creation/components/create_step_footer/create_step_footer.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ export const CreateStepFooter: FC<Props> = ({ jobId, jobType, showProgress }) =>
8282
jobStats.state === DATA_FRAME_TASK_STATE.STOPPED
8383
) {
8484
clearInterval(interval);
85-
setJobFinished(true);
85+
// Check job has started. Jobs that fail to start will also have STOPPED state
86+
setJobFinished(
87+
progressStats.currentPhase === progressStats.totalPhases &&
88+
progressStats.progress === 100
89+
);
8690
}
8791
} else {
8892
clearInterval(interval);

0 commit comments

Comments
 (0)