coolify/app/Actions/Application
Hendrik Kleinwaechter 60d8aba323 feat: configurable stop grace period for applications
Adds stop_grace_period to application settings (seconds, 1-3600, default 30).
Used in place of the hardcoded docker stop -t 30 in the four places that
stop application containers: rolling update shutdown, manual stop, stop on
another server, and preview deployment stop.

Non-positive values fall back to the default via ($val > 0) ? $val : default,
with tests covering 0 and -10 so the cast does not blow up if a bad value
ever lands in the db.

Picks up Jack Coy's work from #7125 which went dormant. His commits are
squashed here with credit below.

Co-authored-by: Jack Coy <jackman3000@gmail.com>
2026-04-22 21:18:18 +02:00
..
CleanupPreviewDeployment.php Update app/Actions/Application/CleanupPreviewDeployment.php 2025-12-08 17:35:13 +01:00
GenerateConfig.php Remove all ray() calls 2024-10-28 13:51:23 +01:00
IsHorizonQueueEmpty.php fix horizon command name 2024-11-12 10:16:34 +01:00
LoadComposeFile.php feat: api api api api api api 2024-07-02 16:12:04 +02:00
StopApplication.php feat: configurable stop grace period for applications 2026-04-22 21:18:18 +02:00
StopApplicationOneServer.php feat: configurable stop grace period for applications 2026-04-22 21:18:18 +02:00