|
|
@ -570,13 +570,10 @@ class MyshixunsController < ApplicationController
|
|
|
|
:create_pod => timeCost['createPod'], :pod_execute => timeCost['execute'], :test_cases => test_cases_time,
|
|
|
|
:create_pod => timeCost['createPod'], :pod_execute => timeCost['execute'], :test_cases => test_cases_time,
|
|
|
|
:brige => timeCost['evaluateAllTime'], :return_back => return_back_time)
|
|
|
|
:brige => timeCost['evaluateAllTime'], :return_back => return_back_time)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
# 清空代码评测信息
|
|
|
|
|
|
|
|
msg = game.run_code_message
|
|
|
|
|
|
|
|
msg.update_column(:status => 0, :message => nil) if msg.present?
|
|
|
|
|
|
|
|
logger.info("training_task_status start#4**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
|
|
|
|
logger.info("training_task_status start#4**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
|
|
|
|
render :json => {:data => "success"}
|
|
|
|
render :json => {:data => "success"}
|
|
|
|
rescue Exception => e
|
|
|
|
rescue Exception => e
|
|
|
|
render :json => {:data => "failed"}
|
|
|
|
render :json => {:data => "failed, errer_message:#{e}"}
|
|
|
|
logger.error("training_task_status error: #{e}")
|
|
|
|
logger.error("training_task_status error: #{e}")
|
|
|
|
raise ActiveRecord::Rollback
|
|
|
|
raise ActiveRecord::Rollback
|
|
|
|
end
|
|
|
|
end
|
|
|
|