diff --git a/judoscale-ruby/lib/judoscale/reporter.rb b/judoscale-ruby/lib/judoscale/reporter.rb index e58117b7..53fcbb6d 100644 --- a/judoscale-ruby/lib/judoscale/reporter.rb +++ b/judoscale-ruby/lib/judoscale/reporter.rb @@ -46,6 +46,9 @@ def start!(config, adapters) def run_loop(config, metrics_collectors) @_thread = Thread.new do + # Advise multi-threaded app servers to ignore this thread for the purposes of fork safety warnings. + Thread.current.thread_variable_set(:fork_safe, true) + loop do run_metrics_collection(config, metrics_collectors)