Skip to content

Commit

Permalink
ensure progress is updated correctly (#97889)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 authored Apr 22, 2021
1 parent 98c7d7d commit 967b172
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,12 @@ export const CreateStepFooter: FC<Props> = ({ jobId, jobType, showProgress }) =>
}

setCurrentProgress(progressStats);
// Clear if job is completed or stopped (after having started)
if (
(progressStats.currentPhase === progressStats.totalPhases &&
progressStats.progress === 100) ||
jobStats.state === DATA_FRAME_TASK_STATE.STOPPED
(jobStats.state === DATA_FRAME_TASK_STATE.STOPPED &&
!(progressStats.currentPhase === 1 && progressStats.progress === 0))
) {
clearInterval(interval);
// Check job has started. Jobs that fail to start will also have STOPPED state
Expand Down

0 comments on commit 967b172

Please sign in to comment.