coolify/config
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
..
api.php refactor(core): rename API rate limit ENV 2025-06-18 15:23:44 +02:00
app.php refactor(configuration): centralize configuration management in ConfigurationRepository 2025-03-24 21:01:27 +01:00
auth.php better emails 2023-09-01 15:52:18 +02:00
broadcasting.php rename soketi container to realtime 2023-12-08 14:57:11 +01:00
cache.php Fix styling 2024-06-10 20:43:34 +00:00
chunk-upload.php feat(core): You can validate compose files with docker compose config 2025-02-27 11:29:04 +01:00
constants.php fix: update version numbers to 4.0.0-beta.443 and 4.0.0-beta.444 2025-11-07 08:26:58 +01:00
cors.php init of v4 🌮 2023-03-17 15:33:48 +01:00
database.php fix(config): Update default PostgreSQL host to coolify-db instead of postgres 2025-02-27 11:56:51 +01:00
debugbar.php feat(core): You can validate compose files with docker compose config 2025-02-27 11:29:04 +01:00
filesystems.php Fix styling 2024-06-10 20:43:34 +00:00
fortify.php rate limit things 2023-08-15 14:27:45 +02:00
hashing.php init of v4 🌮 2023-03-17 15:33:48 +01:00
horizon.php feat(queues): improve Horizon config to reduce CPU and RAM usage (#6212) 2025-07-18 19:17:28 +02:00
livewire.php Disable legacy_model_binding flag in Livewire config 2025-10-13 15:44:23 +02:00
logging.php feat(jobs): improve scheduled tasks with retry logic and queue cleanup 2025-11-10 11:11:18 +01:00
mail.php fix(mail): Set default mailer to array when not specified 2025-02-27 12:56:44 +01:00
purify.php feat: Purify for better sanitization 2025-01-07 13:47:16 +01:00
queue.php Add dynamic timeout for deployments 2024-02-08 12:34:01 +01:00
ray.php chore: Enable Ray by default and update Dockerfile with latest versions of PACK and NIXPACKS 2024-09-06 10:21:02 +02:00
sanctum.php update packages 2024-07-10 13:10:21 +02:00
sentry.php use config instead of env() 2024-11-12 15:53:05 +01:00
services.php feat(user): add changelog read tracking and unread count method 2025-08-12 10:06:19 +02:00
session.php chore: switch to database sessions from redis 2024-06-12 09:56:13 +02:00
subscription.php remove unnecessary things 2024-11-11 10:23:03 +01:00
telescope.php add min process for horizon 2024-11-02 18:32:45 +01:00
testing.php Added a basic login test and also added 2 small variables to dev .env file 2024-09-06 14:16:40 +02:00
view.php init of v4 🌮 2023-03-17 15:33:48 +01:00