coolify/app
Andras Bacsai 945cce9587 feat: Add scheduled job to cleanup orphaned PR containers
Add CleanupOrphanedPreviewContainersJob that runs daily to find and remove any PR preview containers that weren't properly cleaned up when their PR was closed.

The job:
- Scans all functional servers for containers with coolify.pullRequestId label
- Checks if the corresponding ApplicationPreview record exists in the database
- Removes containers where the preview record no longer exists (truly orphaned)
- Acts as a safety net for webhook failures or race conditions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-08 17:15:52 +01:00
..
Actions fix: Add comprehensive PR cleanup to GitLab, Bitbucket, and Gitea webhooks 2025-12-08 17:10:39 +01:00
Console feat: Add scheduled job to cleanup orphaned PR containers 2025-12-08 17:15:52 +01:00
Contracts refactor: streamline job status retrieval and clean up repository interface 2025-01-10 19:53:13 +01:00
Data feat(proxy): add Traefik version tracking with notifications and dismissible UI warnings 2025-11-14 11:35:22 +01:00
Enums Add new role enum and apply authorization 2024-10-28 17:08:24 +01:00
Events Make proxy restart run as background job to prevent localhost lockout 2025-12-03 10:30:12 +01:00
Exceptions feat(DeploymentException): add custom exception for deployment errors and update handler to exclude from reporting 2025-11-11 15:08:26 +01:00
Helpers Fix SSH multiplexing contention for concurrent scheduled tasks (#6736) 2025-12-05 09:54:30 +01:00
Http fix: Add comprehensive PR cleanup to GitLab, Bitbucket, and Gitea webhooks 2025-12-08 17:10:39 +01:00
Jobs feat: Add scheduled job to cleanup orphaned PR containers 2025-12-08 17:15:52 +01:00
Listeners Remove webhook maintenance mode replay feature (#7455) 2025-12-04 14:56:38 +01:00
Livewire refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
Models refactor: replace queries with cached versions for performance improvements 2025-12-08 13:39:33 +01:00
Notifications Fix Traefik email notification with clickable server links 2025-12-02 13:08:40 +01:00
Policies feat: add validation methods for S3 bucket names, paths, and server paths; update import logic to prevent command injection 2025-11-25 16:40:35 +01:00
Providers Remove webhook maintenance mode replay feature 2025-12-02 13:36:32 +01:00
Repositories refactor: streamline job status retrieval and clean up repository interface 2025-01-10 19:53:13 +01:00
Rules feat: add YAML validation for cloud-init scripts 2025-10-11 13:56:55 +02:00
Services Fix container status display: preserve "Restarting" for applications and sub-resources 2025-12-03 08:23:35 +01:00
Support feat(validation): centralize validation patterns for names and descriptions 2025-08-19 12:14:48 +02:00
Traits fix: don't show health status for exited containers 2025-11-24 09:09:37 +01:00
View/Components feat: add availableSharedVariables method and enhance env-var-input component for better password handling 2025-11-27 10:23:46 +01:00