Skip to content

A platform for community discussion. Free, open, simple.

PERF: ensure priority for rake rebake tasks is ultra low

Sam Saffrona9af77d65013
diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake
index f20f961ce16..776aa5fb85f 100644
--- a/lib/tasks/posts.rake
+++ b/lib/tasks/posts.rake
@@ -111,6 +111,9 @@ def rebake_posts(opts = {})
end
def rebake_post(post, opts = {})
+ if !opts[:priority]
+ opts[:priority] = :ultra_low
+ end
post.rebake!(opts)
rescue => e
puts "", "Failed to rebake (topic_id: #{post.topic_id}, post_id: #{post.id})", e, e.backtrace.join("\n")