仓库在冷区后自动迁移

dev_hjm
jingquan huang 6 years ago
parent 3f9c722c98
commit e6b26ee6cb

@ -498,7 +498,6 @@ class GamesController < ApplicationController
rescue Exception => e rescue Exception => e
# 思路: 异常首先应该考虑去恢复 # 思路: 异常首先应该考虑去恢复
# retry为1表示已经轮训完成后还没有解决问题这个时候需要检测异常 # retry为1表示已经轮训完成后还没有解决问题这个时候需要检测异常
if params[:retry].to_i == 1
begin begin
# 如果模板没有问题,则通过中间层检测实训仓库是否异常 # 如果模板没有问题,则通过中间层检测实训仓库是否异常
# 监测版本库HEAD是否存在不存在则取最新的HEAD # 监测版本库HEAD是否存在不存在则取最新的HEAD
@ -534,8 +533,6 @@ class GamesController < ApplicationController
tip_exception(-3, "#{e.message}") tip_exception(-3, "#{e.message}")
end end
end end
end
# 有异常版本库获取不到代码前端轮训15S后调用retry == 1
tip_exception(0, e.message) tip_exception(0, e.message)
end end
end end

Loading…
Cancel
Save