batch processor for migrating FA user favs

This commit is contained in:
Dylan Knutson
2025-07-11 23:20:44 +00:00
parent c37e3c1024
commit 7a02282893
17 changed files with 266 additions and 136 deletions

View File

@@ -230,4 +230,12 @@ namespace :fa do
Domain::User.find_by_param("fa@#{url_name}") || raise("user not found")
Domain::Fa::BackfillTrackedObjectUserFavs.new(user:).run
end
desc "Migrate Domain::UserPostFav::FaUserPostFav"
task migrate_fa_user_post_favs: :set_logger_stdout do
Tasks::Fa::MigrateFaUserPostFavs.new.run(
start_at: ENV["start_at"],
batch_size: ENV["batch_size"]&.to_i,
)
end
end