Reuse Gitlab::Geo.current_node on GeoBackfillWorker

[ci skip]
parent 7722b0ff
......@@ -60,12 +60,6 @@ class GeoBackfillWorker
# No caching of the enabled! If we cache it and an admin disables
# this node, an active GeoBackfillWorker would keep going for up
# to max run time after the node was disabled.
current_node.enabled?
end
def current_node
GeoNode.find_by(host: Gitlab.config.gitlab.host,
port: Gitlab.config.gitlab.port,
relative_url_root: Gitlab.config.gitlab.relative_url_root)
Gitlab::Geo.current_node.enabled?
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment