debian-mirror-gitlab/app/workers/trending_projects_worker.rb
2021-06-08 01:23:25 +05:30

16 lines
392 B
Ruby

# frozen_string_literal: true
class TrendingProjectsWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
sidekiq_options retry: 3
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
feature_category :source_code_management
def perform
Gitlab::AppLogger.info('Refreshing trending projects')
TrendingProject.refresh!
end
end