mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
DEV: Change priority to ultra_low for post-s3-migration rebake
This commit is contained in:

committed by
Guo Xiang Tan

parent
abbe812a0d
commit
20daa76829
@ -425,7 +425,9 @@ def migrate_to_s3
|
|||||||
|
|
||||||
puts "Rebaking posts with lightboxes..."
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user