Skip to content
代码片段 群组 项目
提交 6910064f 编辑于 作者: Stan Hu's avatar Stan Hu
浏览文件

Merge branch 'sh-geo-avoid-db-initializer' into 'master'

Avoid using the database in the Geo initializer

See merge request !2099
No related branches found
No related tags found
加载中
......@@ -6,9 +6,10 @@
end
begin
if Gitlab::Geo.primary?
# Avoid using the database if this is run in a Rake task
if Gitlab::Geo.primary_role_enabled?
Gitlab::Geo.current_node.update_clone_url!
end
rescue
warn 'WARNING: Unable to check/update clone_url_prefix for Geo'
rescue => e
warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册