From 5f59d710d1bd6a03d0ea91f0c96c21de793b254a Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 1 Jun 2019 09:32:35 +0800 Subject: [PATCH] 500 --- app/services/games_service.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/games_service.rb b/app/services/games_service.rb index 253b5bcd..9c2dc93f 100644 --- a/app/services/games_service.rb +++ b/app/services/games_service.rb @@ -599,9 +599,9 @@ class GamesService return {:result => "success", :resubmit => resubmit, :ableToCreate => res['ableToCreate'], :waitNum => res['waitNum'], :waitingTime => res['waitingTime'], :position => game_challenge.position, :port => res['port'], :had_done => game.had_done} - rescue Exception => e - Rails.logger.error("评测出错,详情:" + e.message) - return {:result => 'fail', :contents =>"实训云平台繁忙(繁忙等级:502),请稍后刷新并重试", :position => game_challenge.position, :had_done => game.had_done} + # rescue Exception => e + # Rails.logger.error("评测出错,详情:" + e.message) + # return {:result => 'fail', :contents =>"实训云平台繁忙(繁忙等级:502),请稍后刷新并重试", :position => game_challenge.position, :had_done => game.had_done} end # 单评测类型(比较快的类型,实时返回结果,即不用中间层再回调trainint_task_status)