Does not read cached value of Gitlab::Geo.current_node.enabled?

parent 5fcd90ef
......@@ -77,6 +77,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.
Gitlab::Geo.current_node.enabled?
Gitlab::Geo.current_node.reload.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