BigW Consortium Gitlab

Commit b5d9d9e8 by Sean McGivern Committed by Rémy Coutable

Remove Geo references

parent 73a8caf1
......@@ -3,8 +3,6 @@ class ScheduleUpdateUserActivityWorker
include CronjobQueue
def perform(batch_size = 500)
return if Gitlab::Geo.secondary?
Gitlab::UserActivities.new.each_slice(batch_size) do |batch|
UpdateUserActivityWorker.perform_async(Hash[batch])
end
......
......@@ -3,8 +3,6 @@ class UpdateUserActivityWorker
include DedicatedSidekiqQueue
def perform(pairs)
return if Gitlab::Geo.secondary?
pairs = cast_data(pairs)
ids = pairs.keys
conditions = 'WHEN id = ? THEN ? ' * ids.length
......
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