pre_develop
jingquan huang 6 years ago
parent a2de61dc23
commit 5f59d710d1

@ -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)

Loading…
Cancel
Save