From 20daa76829e4c2ce8fa84744ce1ec4bbbee0c307 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 10 May 2019 10:57:37 +0100 Subject: [PATCH] DEV: Change priority to ultra_low for post-s3-migration rebake --- lib/tasks/uploads.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tasks/uploads.rake b/lib/tasks/uploads.rake index 027351fe3e..a4b85c18dd 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