Persist follow recommendations from FASP (#35218)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Scheduler::Fasp::FollowRecommendationCleanupScheduler
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 1.day.to_i
|
||||
|
||||
def perform
|
||||
return unless Mastodon::Feature.fasp_enabled?
|
||||
|
||||
Fasp::FollowRecommendation.outdated.delete_all
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user