This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-09-02 12:11:13 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Scheduler::TrendingTagsScheduler
|
|
|
|
include Sidekiq::Worker
|
|
|
|
|
2020-03-31 15:59:03 -04:00
|
|
|
sidekiq_options lock: :until_executed, retry: 0
|
2019-09-02 12:11:13 -04:00
|
|
|
|
|
|
|
def perform
|
|
|
|
TrendingTags.update! if Setting.trends
|
|
|
|
end
|
|
|
|
end
|