coolify/app/Livewire/Project/Shared
Andras Bacsai b22e79caec feat(jobs): improve scheduled tasks with retry logic and queue cleanup
- Add retry configuration to CoolifyTask (3 tries, 600s timeout)
- Add retry configuration to ScheduledTaskJob (3 tries, configurable timeout)
- Add retry configuration to DatabaseBackupJob (2 tries)
- Implement exponential backoff for all jobs (30s, 60s, 120s intervals)
- Add failed() handlers with comprehensive error logging to scheduled-errors channel
- Add execution tracking: started_at, retry_count, duration (decimal), error_details
- Add configurable timeout field to scheduled tasks (60-3600s, default 300s)
- Update UI to include timeout configuration in task creation/editing forms
- Increase ScheduledJobManager lock expiration from 60s to 90s for high-load environments
- Implement safe queue cleanup with restart vs runtime modes
  - Restart mode: aggressive cleanup (marks all processing jobs as failed)
  - Runtime mode: conservative cleanup (only marks jobs >12h as failed, skips deployments)
- Add cleanup:redis --restart flag for system startup
- Integrate cleanup into Dev.php init() for development environment
- Increase scheduled-errors log retention from 7 to 14 days
- Create comprehensive test suite (unit and feature tests)
- Add TESTING_GUIDE.md with manual testing instructions

Fixes issues with jobs failing after single attempt and "attempted too many times" errors
2025-11-10 11:11:18 +01:00
..
EnvironmentVariable fix(environment): clear computed property cache after adding environment variables 2025-10-07 13:57:59 +02:00
ScheduledTask feat(jobs): improve scheduled tasks with retry logic and queue cleanup 2025-11-10 11:11:18 +01:00
Storages Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
ConfigurationChecker.php feat(event): introduce ApplicationConfigurationChanged event to handle team-specific configuration updates and broadcast changes 2025-09-22 09:44:30 +02:00
Danger.php feat(auth): enhance authorization checks in Livewire components for resource management 2025-08-26 10:27:38 +02:00
Destination.php refactor(application): enhance application stopping logic to support multiple servers 2025-05-26 21:44:34 +02:00
ExecuteContainerCommand.php feat(domains): implement domain conflict detection and user confirmation modal across application components 2025-08-28 10:52:41 +02:00
GetLogs.php refactor: simplify project data retrieval and enhance OAuth settings handling 2025-10-27 17:03:19 +01:00
HealthChecks.php refactor: Remove SynchronizesModelData trait and implement syncData method for model synchronization 2025-11-04 09:18:05 +01:00
Logs.php refactor(logs): remove unused methods and debug functionality from Logs.php for cleaner code 2025-06-10 10:48:08 +02:00
Metrics.php Removed debug logging for metrics 2025-09-19 23:28:25 +05:30
ResourceLimits.php Complete Livewire legacy model binding migration (25+ components) 2025-10-13 15:38:59 +02:00
ResourceOperations.php refactor(clone): consolidate application cloning logic into a dedicated function for improved maintainability and readability 2025-09-11 10:38:08 +02:00
Tags.php feat(acl): Change views/backend code to able to use proper ACL's later on. Currently it is not enabled. 2025-08-26 10:27:38 +02:00
Terminal.php refactor(terminal): simplify command construction for SSH execution 2025-07-03 15:48:59 +02:00
UploadConfig.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
Webhooks.php feat(acl): Change views/backend code to able to use proper ACL's later on. Currently it is not enabled. 2025-08-26 10:27:38 +02:00