2
0

Persist follow recommendations from FASP (#35218)

This commit is contained in:
David Roetzel
2025-06-30 15:39:36 +02:00
committed by GitHub
parent e8a603b18f
commit bae258925c
12 changed files with 151 additions and 8 deletions

View File

@@ -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