500 and log

dev_forum
jingquan huang 6 years ago
parent 9821fed63d
commit 3c5f0385a3

@ -203,6 +203,7 @@ class MyshixunsController < ApplicationController
test_cases_time = format("%.3f", (Time.now.to_f - t1.to_f)).to_f
if record.present?
consume_time = format("%.3f", (Time.now - record.created_at)).to_f
uid_logger("11122233334444#{max_mem}, #{sec_key}")
record.update_attributes!(:consume_time => consume_time, :git_pull => timeCost['pull'] , :create_pod => timeCost['createPod'],
:pod_execute => timeCost['execute'], :test_cases => test_cases_time, :max_mem => max_mem,
:brige => timeCost['evaluateAllTime'], :return_back => return_back_time)

@ -7,7 +7,7 @@ json.test_sets @qurey_test_sets do |test_set|
json.actual_output evaluate_actual_output(test_set)
end
json.compile_success test_set.try(:compile_success)
json.ts_time test_set.ts_time
json.ts_time test_set.try(:ts_time)
end
json.allowed_unlock @shixun.test_set_permission

Loading…
Cancel
Save