Skip to content

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

DEV: Clean up dead OOBC configuration (#44633)

Alan Guo Xiang Tan3cb567cb3282
diff --git a/config/pitchfork.conf.rb b/config/pitchfork.conf.rb
index 9e79758f1bd..7890dce6988 100644
--- a/config/pitchfork.conf.rb
+++ b/config/pitchfork.conf.rb
@@ -84,21 +84,11 @@ after_mold_fork do |server, mold|
Process.warmup
end
-oob_gc_enabled = ENV["DISCOURSE_DISABLE_MAJOR_GC_DURING_REQUESTS"] && RUBY_VERSION >= "3.4"
-
after_worker_fork do |server, worker|
DiscourseEvent.trigger(:web_fork_started)
Discourse.apply_worker_db_variables_overrides
Discourse.after_fork
SignalTrapLogger.instance.after_fork
-
- GC.config(rgengc_allow_full_mark: false) if oob_gc_enabled
-end
-
-if oob_gc_enabled
- after_request_complete do |_server, _worker, _rack_env|
- GC.start if GC.latest_gc_info(:need_major_by)
- end
end
before_service_worker_ready do |server, service_worker|