DEV: Change priority to ultra_low for post-s3-migration rebake

DEV: Change priority to ultra_low for post-s3-migration rebake

diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake
index 027351f..a4b85c1 100644
--- a/lib/tasks/uploads.rake
+++ b/lib/tasks/uploads.rake
@@ -425,7 +425,9 @@ def migrate_to_s3
 
       puts "Rebaking posts with lightboxes..."
 
-      Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each(&:rebake!)
+      Post.where("cooked LIKE '%class=\"lightbox\"%'").find_each do |post|
+        post.rebake!(priority: :ultra_low)
+      end
     end
   end

GitHub sha: 20daa768

1 Like