File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -426,18 +426,19 @@ const docker_cron = async () => {
426426 `Port ${ port } Released! room id: ${ queue_front . room_id } ` ,
427427 ) ;
428428
429- if ( error || time_out ) {
430- if ( error )
431- console . error (
432- "An error occurred in waiting for server container:" ,
433- error ,
434- ) ;
435- ContHasFunc . update_room_status (
436- queue_front . room_id ,
437- time_out ? "Timeout" : "Crashed" ,
429+ if ( error )
430+ console . error (
431+ "An error occurred in waiting for server container:" ,
432+ error ,
438433 ) ;
439- upload_contest_files ( sub_base_dir , queue_front ) ;
434+ if ( time_out ) {
435+ console . log ( "Time Out! room id: " + queue_front . room_id ) ;
440436 }
437+ ContHasFunc . update_room_status (
438+ queue_front . room_id ,
439+ time_out ? "Timeout" : "Crashed" ,
440+ ) ;
441+ upload_contest_files ( sub_base_dir , queue_front ) ;
441442 } catch ( err ) {
442443 console . error (
443444 "An error occurred in waiting for server container:" ,
You can’t perform that action at this time.
0 commit comments