schedule_update_user_activity_worker.rb 262 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 class ScheduleUpdateUserActivityWorker include Sidekiq::Worker include CronjobQueue def perform(batch_size = 500) Gitlab::UserActivities.new.each_slice(batch_size) do |batch| UpdateUserActivityWorker.perform_async(Hash[batch]) end end end