Skip to content

Commit

Permalink
[ML] DF Analytics creation: ensure job did not fail to start before s…
Browse files Browse the repository at this point in the history
…howing results link (#78200) (#78664)

* ensure job did not fail to start before showing results link

* simplify job started check

* update job finished check
  • Loading branch information
alvarezmelissa87 committed Sep 28, 2020
1 parent 8563052 commit 5eae936
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ export const CreateStepFooter: FC<Props> = ({ jobId, jobType, showProgress }) =>
jobStats.state === DATA_FRAME_TASK_STATE.STOPPED
) {
clearInterval(interval);
setJobFinished(true);
// Check job has started. Jobs that fail to start will also have STOPPED state
setJobFinished(
progressStats.currentPhase === progressStats.totalPhases &&
progressStats.progress === 100
);
}
} else {
clearInterval(interval);
Expand Down

0 comments on commit 5eae936

Please sign in to comment.