coolify/app/Console/Commands
Andras Bacsai f8f27fff13 refactor(scheduler): extract cron scheduling logic to shared helper
Extract the shouldRunNow() method from ScheduledJobManager and ServerManagerJob into
a reusable shouldRunCronNow() helper function. This centralizes cron scheduling logic
and enables consistent deduplication behavior across all scheduled job types.

- Create shouldRunCronNow() helper in bootstrap/helpers/shared.php with timezone
  and dedup support
- Refactor ScheduledJobManager and ServerManagerJob to use the shared helper
- Add ScheduledJobDiagnostics command for inspecting cache state and scheduling
  decisions across all scheduled jobs
- Simplify shouldRunNow tests to directly test the helper function
- Add DockerCleanupJob test for error handling and execution tracking
- Increase scheduled log retention from 1 to 7 days
2026-03-23 10:37:49 +01:00
..
Cloud feat(jobs): optimize async job dispatches and enhance Stripe subscription sync 2026-02-28 13:18:44 +01:00
Generate fix(api): add a newline to openapi.json 2026-02-16 00:04:05 +01:00
AdminDeleteUser.php Changes auto-committed by Conductor 2025-10-16 17:23:22 +02:00
CheckApplicationDeploymentQueue.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
CheckTraefikVersionCommand.php feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
CleanupApplicationDeploymentQueue.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
CleanupDatabase.php chore: remove webhooks table cleanup 2025-09-10 19:56:15 +02:00
CleanupNames.php refactor: remove duplicated validation messages 2026-01-05 13:15:14 +01:00
CleanupRedis.php reduce: minimize logging in cleanup commands 2025-11-26 14:19:13 +01:00
CleanupStuckedResources.php fix: enhance error handling in initialization and cleanup process 2025-11-10 15:29:26 +01:00
CleanupUnreachableServers.php feat(jobs): optimize async job dispatches and enhance Stripe subscription sync 2026-02-28 13:18:44 +01:00
ClearGlobalSearchCache.php feat: add artisan command to clear global search cache 2025-10-11 13:36:14 +02:00
Dev.php feat(Cleanup): implement failure marking for stuck scheduled tasks and database backups during startup 2025-11-11 12:32:52 +01:00
Emails.php feat(BackupNotification): include database name in BackupFailed notification for better context 2025-11-11 15:27:57 +01:00
GenerateTestingSchema.php test: add Pest browser testing with SQLite :memory: schema 2026-02-11 15:25:47 +01:00
Horizon.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
HorizonManage.php refactor: streamline job status retrieval and clean up repository interface 2025-01-10 19:53:13 +01:00
Init.php feat(Cleanup): implement failure marking for stuck scheduled tasks and database backups during startup 2025-11-11 12:32:52 +01:00
Migration.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
NotifyDemo.php Refactor color classes from yellow to warning across the application 2025-11-28 16:23:32 +01:00
RootChangeEmail.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
RootResetPassword.php fix(console): handle missing root user in password reset command 2025-03-24 18:00:31 +01:00
RunScheduledJobsManually.php feat(scheduling): add frequency filter option for manual execution of scheduled jobs 2025-07-11 15:10:43 +02:00
ScheduledJobDiagnostics.php refactor(scheduler): extract cron scheduling logic to shared helper 2026-03-23 10:37:49 +01:00
Scheduler.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
Seeder.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
ServicesDelete.php refactor(command): improve database collection logic for deletion command by using unique identifiers and enhancing user experience 2025-09-05 17:43:19 +02:00
SyncBunny.php fix: improve error handling and output capturing during Git operations in SyncBunny command 2025-11-27 10:51:25 +01:00
UpdateServiceVersions.php Add artisan command to update service Docker image versions 2025-10-30 08:29:11 +01:00
ViewScheduledLogs.php feat(logging): add frequency filters for scheduled logs command to support hourly, daily, weekly, and monthly job views 2025-07-11 19:26:42 +02:00