评测报错

dev_forum
daiao 6 years ago
parent d21f863c17
commit 44774e9c58

@ -99,8 +99,6 @@ class MyshixunsController < ApplicationController
# 资源消耗
res_usage = jsonTestDetails['resUsage']
# 关卡测试集的总耗时
ts_time = 0
logger.info("training_task_status start#1**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
resubmit = jsonTestDetails['resubmit']
@ -148,7 +146,6 @@ class MyshixunsController < ApplicationController
if resubmit.present?
uid_logger("#############resubmitdaiao: #{resubmit}")
game.update_attributes!(:retry_status => 2, :resubmit_identifier => resubmit)
uid_logger("#############resubmit_identifier_resubmitdaiao: #{game.resubmit_identifier}")
challenge.path.split("").each do |path|
game_passed_code(path.try(:strip), myshixun, game_id)
end
@ -201,7 +198,7 @@ class MyshixunsController < ApplicationController
if record.present?
consume_time = format("%.3f", (Time.now - record.created_at)).to_f
record.update_attributes!(:consume_time => consume_time, :git_pull => timeCost['pull'] , :create_pod => timeCost['createPod'],
:pod_execute => timeCost['execute'], :test_cases => test_cases_time, :ts_time => ts_time,
:pod_execute => timeCost['execute'], :test_cases => test_cases_time,
:brige => timeCost['evaluateAllTime'], :return_back => return_back_time)
end
uid_logger("training_task_status start#4**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")

Loading…
Cancel
Save