coolify/app/Actions/Application
Andras Bacsai 75d8ebe803 fix(restart): reset restart count when resource is manually stopped
When a database or application was in a restart loop, the restart count
persisted even after the user manually stopped the resource. This caused
the UI to continue showing "(Xx restarts)" after user intervention.

Now resets restart_count, last_restart_at, and last_restart_type when:
- User stops a database (StopDatabase action)
- User stops an application (StopApplication action)

The existing reset in GetContainersStatus is still needed for containers
that exit on their own (crash without recovery, Docker giving up).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2025-12-27 15:21:19 +01: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 fix(restart): reset restart count when resource is manually stopped 2025-12-27 15:21:19 +01:00
StopApplicationOneServer.php Changed docker --time command to -t since --time is deprecated on v28 2025-10-09 13:26:10 +05:30