mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
FIX: Don't prevent unicorn worker from starting if warmup fails.
This commit is contained in:
parent
51854e56ac
commit
f69f225f65
@ -168,5 +168,10 @@ after_fork do |server, worker|
|
||||
# it may cause issues if bg threads in a v8 isolate randomly stop
|
||||
# working due to fork
|
||||
Discourse.after_fork
|
||||
PrettyText.cook("warm up **pretty text**")
|
||||
|
||||
begin
|
||||
PrettyText.cook("warm up **pretty text**")
|
||||
rescue => e
|
||||
Rails.logger.error("Failed to warm up pretty text: #{e}")
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user