1- import { apply , call , cancel , cancelled , fork , put , race , spawn } from "typed-redux-saga" ;
1+ import { apply , call , cancel , cancelled , fork , put , race } from "typed-redux-saga" ;
22import { ActionTypes as StepperActionTypes , stepperDisplayError } from "../stepper/actionTypes" ;
33import log from "loglevel" ;
4- import {
5- getNextLevelIndex ,
6- PlatformTaskGradingParameters ,
7- PlatformTaskGradingResult ,
8- } from "../task/platform/platform" ;
4+ import { getNextLevelIndex , PlatformTaskGradingParameters , PlatformTaskGradingResult , } from "../task/platform/platform" ;
95import { selectAnswer } from "../task/selectors" ;
106import { delay } from "../player/sagas" ;
117import {
@@ -21,7 +17,6 @@ import {
2117} from "./submission_slice" ;
2218import { longPollServerSubmissionResults , makeServerSubmission } from "./task_platform" ;
2319import { appSelect } from '../hooks' ;
24- import { getTaskPlatformMode , recordingProgressSteps , TaskPlatformMode } from '../task/utils' ;
2520import { TaskActionTypes , updateCurrentTestId } from '../task/task_slice' ;
2621import { LibraryTestResult } from '../task/libs/library_test_result' ;
2722import { DeferredPromise } from '../utils/app' ;
@@ -253,7 +248,7 @@ class TaskSubmissionExecutor {
253248 const submissionId = submissionData . submissionId ;
254249 submissionExecutionTasks [ submissionIndex ] = yield * fork ( [ this , this . gradeAnswerLongPolling ] , submissionIndex , serverSubmission , submissionId ) ;
255250
256- return submissionExecutionTasks [ submissionIndex ] . toPromise ( ) ;
251+ return yield submissionExecutionTasks [ submissionIndex ] . toPromise ( ) ;
257252 } catch ( ex : any ) {
258253 yield * put ( submissionUpdateTaskSubmission ( {
259254 id : submissionIndex ,
0 commit comments