coolify/tests/Feature
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
..
Service feat: Implement required port validation for service applications 2025-11-06 14:32:36 +01:00
CloudInitScriptTest.php feat: add cloud-init script support for Hetzner server creation 2025-10-10 19:37:16 +02:00
ConvertArraysTest.php fix: check if array is associative or not 2024-09-03 17:04:56 +02:00
ConvertContainerEnvsToArray.php chore(tests): update test environment database name and add new feature test for converting container environment variables to array 2025-05-22 14:30:16 +02:00
ConvertingGitUrlsTest.php fix: add tests for git url converts 2024-11-12 11:32:18 +01:00
CoolifyTaskRetryTest.php feat(jobs): improve scheduled tasks with retry logic and queue cleanup 2025-11-10 11:11:18 +01:00
DatabaseBackupCreationApiTest.php feat: Implement required port validation for service applications 2025-11-06 14:32:36 +01:00
DatabaseBackupJobTest.php feat(backup): enhance backup job with S3 upload handling and notifications 2025-10-07 15:02:23 +02:00
DeletesUserSessionsTest.php Changes auto-committed by Conductor 2025-10-16 09:51:37 +02:00
DeploymentCancellationApiTest.php Changes auto-committed by Conductor 2025-10-16 11:01:58 +02:00
DockerCustomCommandsTest.php refactor 2025-04-23 13:22:01 +02:00
ExecuteContainerCommandTest.php test: setup database for upcoming tests 2024-12-04 12:43:52 +01:00
GithubAppsListApiTest.php Changes auto-committed by Conductor 2025-10-16 13:19:05 +02:00
GithubSourceChangeTest.php fix: GitHub source creation and configuration issues 2025-10-25 10:49:09 +02:00
GithubSourceCreateTest.php fix: GitHub source creation and configuration issues 2025-10-25 10:49:09 +02:00
HetznerServerCreationTest.php fix: update boarding flow logic to complete onboarding when server is created 2025-10-29 23:06:39 +01:00
InstanceSettingsHelperVersionTest.php Changes auto-committed by Conductor 2025-10-16 09:51:37 +02:00
IpAllowlistTest.php refactor(dns-validation): rename DNS validation functions for consistency and clarity, and remove unused code 2025-09-09 09:00:35 +02:00
LoginRateLimitIPTest.php rate limit test 2025-10-28 15:18:28 +01:00
MultilineEnvironmentVariableTest.php feat(deployments): enhance Docker build argument handling for multiline variables 2025-10-02 13:54:36 +02:00
ServerPatchCheckNotificationTest.php test: fix ServerPatchCheckNotification tests to avoid global state pollution 2025-10-26 21:54:55 +01:00
ServerSettingSentinelRestartTest.php Changes auto-committed by Conductor 2025-10-16 09:51:37 +02:00
ServerSettingWasChangedTest.php Changes auto-committed by Conductor 2025-10-16 09:51:37 +02:00
TeamInvitationEmailNormalizationTest.php refactor(ui): improve styling and consistency in environment variable warning and docker cleanup components 2025-09-25 11:45:07 +02:00
TeamInvitationPrivilegeEscalationTest.php fix: critical privilege escalation in team invitation system 2025-10-15 11:42:25 +02:00
TeamPolicyTest.php fix: add authentication context to TeamPolicyTest 2025-10-15 15:08:35 +02:00
TrustHostsMiddlewareTest.php Changes auto-committed by Conductor 2025-10-20 09:48:37 +02:00
Utf8HandlingTest.php feat(utf8-handling): implement UTF-8 sanitization for command outputs and enhance error handling in logs processing 2025-06-05 14:27:39 +02:00