From d196c161dfbd53df00621af29ad4a0a2d45628dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Mon, 10 Aug 2026 17:24:08 -0600 Subject: [PATCH] Force-shutdown Puma if necessary Do it before the systemd service's timeout is reached --- config/puma.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/puma.rb b/config/puma.rb index 805e1ee..c206e96 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -38,6 +38,8 @@ plugin :tmp_restart # Run the Solid Queue supervisor inside of Puma for single-server deployments plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"] +force_shutdown_after 25 + # Specify the PID file. Defaults to tmp/pids/server.pid in development. # In other environments, only set the PID file if requested. pidfile ENV["PIDFILE"] if ENV["PIDFILE"]