diff --git a/lib/tasks/talks.rake b/lib/tasks/talks.rake index cee659a4b..8dcf7f3ba 100644 --- a/lib/tasks/talks.rake +++ b/lib/tasks/talks.rake @@ -14,8 +14,9 @@ namespace :talks do desc "Update or create manifest for all talks (caution: this might take a while)" task manifests: :environment do - Talk.all.each do |t| - puts "Update manifest file for talk (#{t.id}) #{t.title}" + total = Talk.archived.count + Talk.archived.each_with_index do |t, i| + puts "#{i}/#{total} Update manifest file for talk (#{t.id}) #{t.title}" t.send(:update_manifest_file!) end end