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.rakeindex f20f961ce16..776aa5fb85f 100644--- a/lib/tasks/posts.rake+++ b/lib/tasks/posts.rake@@ -111,6 +111,9 @@ def rebake_posts(opts = {})enddef rebake_post(post, opts = {})+ if !opts[:priority]+ opts[:priority] = :ultra_low+ endpost.rebake!(opts)rescue => eputs "", "Failed to rebake (topic_id: #{post.topic_id}, post_id: #{post.id})", e, e.backtrace.join("\n")