Skip to content

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

DEV: Allow pitchfork workers to take more time to boot (#37721)

Loïc Guitaut7324b327cdf7
diff --git a/config/pitchfork.conf.rb b/config/pitchfork.conf.rb
index cba8c443573..3369523995a 100644
--- a/config/pitchfork.conf.rb
+++ b/config/pitchfork.conf.rb
@@ -30,6 +30,11 @@ else
timeout(ENV["UNICORN_TIMEOUT"] && ENV["UNICORN_TIMEOUT"].to_i || 60)
end
+# On some really constrained environments, the mold process can take a long
+# time to spawn workers. This is a safety valve to prevent the mold process
+# from giving up too early.
+spawn_timeout(Integer(ENV["APP_SERVER_SPAWN_TIMEOUT"], exception: false) || 60)
+
check_client_connection false
before_fork do |server|