2018-06-27 03:23:28 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-02-19 13:09:10 -05:00
|
|
|
class TrendingProjectsWorker # rubocop:disable Scalability/IdempotentWorker
|
2017-11-28 11:08:30 -05:00
|
|
|
include ApplicationWorker
|
2021-04-30 14:10:09 -04:00
|
|
|
|
|
|
|
sidekiq_options retry: 3
|
2020-02-04 10:08:40 -05:00
|
|
|
include CronjobQueue # rubocop:disable Scalability/CronWorkerContext
|
2016-10-07 09:24:09 -04:00
|
|
|
|
2019-10-18 07:11:44 -04:00
|
|
|
feature_category :source_code_management
|
|
|
|
|
2016-10-07 09:24:09 -04:00
|
|
|
def perform
|
2020-09-08 05:08:31 -04:00
|
|
|
Gitlab::AppLogger.info('Refreshing trending projects')
|
2016-10-07 09:24:09 -04:00
|
|
|
|
|
|
|
TrendingProject.refresh!
|
|
|
|
end
|
|
|
|
end
|