ensure progress is updated correctly (#97889)
This commit is contained in:
parent
98c7d7da0a
commit
967b17275b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue