Module: Beacon::Railtie::ForkHook
- Defined in:
- lib/beacon/rails.rb
Overview
Ruby 3.1+ Process._fork hook. Runs in every fork child, which is exactly what we want — the first push in a new worker would re-init anyway via Client#ensure_forked!, but this makes it eager so the flusher is already running when the first request lands.