diff --git a/config/puma_production.rb b/config/puma_production.rb index 2dbc051b5..8efd249ed 100644 --- a/config/puma_production.rb +++ b/config/puma_production.rb @@ -16,6 +16,14 @@ preload_app! +# Set the timeout for worker shutdown +worker_shutdown_timeout(120) + +# Set Timestamp +log_formatter do |str| + "[#{Process.pid}] #{Time.now}: #{str}" +end + before_fork do ActiveRecord::Base.connection.disconnect! Cdr::Base.connection.disconnect!