When running puma in clustered mode in production, Dynflow would get initialized in the master process before workers were forked off and due to CoW the workers would use the same world id.
With this commit we will eagerly initialize Dynflow only when running under Passenger. When running under puma, we will initialize Dynflow in workers.
Fixes #29258 - Initialize dynflow in puma workers
When running puma in clustered mode in production, Dynflow would get initialized
in the master process before workers were forked off and due to CoW the workers
would use the same world id.
With this commit we will eagerly initialize Dynflow only when running under
Passenger. When running under puma, we will initialize Dynflow in workers.
Co-Authored-By: Ewoud Kohl van Wijngaarden <ewoud@kohlvanwijngaarden.nl>