Commit Graph

26 Commits

Author SHA1 Message Date
Andras Bacsai b354ab9a30 Fix execution time tooltip maximum value
Update tooltip text to correctly show that the maximum execution time is 36000 seconds (10 hours) instead of 3600 seconds. The validation already allowed up to 36000 seconds, but the UI was displaying incorrect information.

🤖 Generated with Claude Code

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2025-12-11 22:29:14 +01:00
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
Andras Bacsai 18f2e5ea32 fix(scheduling): remove unnecessary padding from scheduled task form layout for improved UI consistency 2025-07-12 12:26:19 +02:00
Andras Bacsai 786bfa960f improvement(core): simplify events for app/db/service status changes 2025-05-19 21:50:32 +02:00
Andras Bacsai 376a2341af refactor scheduled task job (and related stuffs) 2024-11-07 11:09:38 +01:00
Andras Bacsai 8e91d958be refactor: Improve layout and add checkbox for task enablement in scheduled task form 2024-09-24 21:29:55 +02:00
Andras Bacsai b84d39ba56 refactor: Update confirmation button text for deletion actions 2024-09-23 08:58:04 +02:00
Andras Bacsai 5ec45d547a Merge branch 'next' into fix-#2546-deletion-issues 2024-09-18 18:05:06 +02:00
Andras Bacsai b5232f3d32 Merge pull request #3300 from Vahor/remove-reverse-scheduled
fix: recent executions in wrong order in scheduled-task list ui
2024-09-05 11:07:48 +02:00
ayntk-ai bbbd5cbaa1 Feat: confirm scheduled tasks 2024-09-04 19:44:10 +02:00
Vahor cadb12986c fix: wrong executions order 2024-09-03 21:10:44 +02:00
Matt Stein 08a80876f9 Fix language in helper messages. 2024-09-02 19:43:16 -07:00
ayntk-ai bff6964d4a scheduled task deletion 2024-08-30 20:33:12 +02:00
ayntk-ai 48734e53d0 formatting 2024-08-16 21:22:06 +02:00
ayntk-ai e3b9884247 UI fix 2024-08-16 14:45:40 +02:00
Andras Bacsai 35cea852ca feat: add titles 2024-06-07 11:01:10 +02:00
Andras Bacsai 317dc10af4 fix: improve scheduled task adding/removing 2024-05-14 15:19:28 +02:00
Andras Bacsai a66090b594 ui + package updates 2024-03-25 10:41:44 +01:00
Andras Bacsai b61860b3ab ui: redesign 2024-03-20 12:54:06 +01:00
Andras Bacsai 1f18542960 fix: cleanup scheduled tasks 2024-02-14 15:14:06 +01:00
Andras Bacsai c76e8bb0de fix: migrate to new modal 2024-01-31 16:14:12 +01:00
Andras Bacsai c5932ed337 smaller ui fixes 2024-01-10 12:41:29 +01:00
Stuart Rowlands 512197021b Minor cleanup. 2024-01-05 15:26:51 +10:00
Stuart Rowlands e2e6813632 Functional scheduled executions.
Display last executions.
Support for Services.
2024-01-05 15:06:36 +10:00
Stuart Rowlands 7913a639b5 Complete add/edit/delete for scheduled tasks.
Refactor views.
2024-01-01 18:23:29 -08:00
Stuart Rowlands adecf328fc WIP start of scheduled tasks. 2024-01-01 10:33:16 -08:00