From 41bc90dd3e22a818b9ea1830e381ede6364a8f2b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 20 May 2019 14:19:58 +0100 Subject: [PATCH] DEV: Add progress indicator for post rebake during s3 migration Now that we run sidekiq jobs synchronously, this is important --- lib/tasks/uploads.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index b825f81c0ba..d80bb997c8d 100644 --- a/lib/tasks/uploads.rake +++ b/lib/tasks/uploads.rake @@ -460,8 +460,10 @@ def migrate_to_s3 puts "Rebaking posts with lightboxes..." Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each do |post| + putc "." post.rebake!(priority: :ultra_low) end + puts end end