[PR #1911] [MERGED] Refactor schedule tasks #1651

Closed
opened 2026-02-04 20:04:48 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/pelican-dev/panel/pull/1911
Author: @Boy132
Created: 11/18/2025
Status: Merged
Merged: 11/24/2025
Merged by: @Boy132

Base: mainHead: boy132/refactor-tasks


📝 Commits (8)

📊 Changes

14 files changed (+342 additions, -79 deletions)

View changed files

app/Extensions/Tasks/Schemas/CreateBackupSchema.php (+32 -0)
app/Extensions/Tasks/Schemas/DeleteFilesSchema.php (+26 -0)
app/Extensions/Tasks/Schemas/PowerActionSchema.php (+57 -0)
app/Extensions/Tasks/Schemas/SendCommandSchema.php (+36 -0)
app/Extensions/Tasks/Schemas/TaskSchema.php (+52 -0)
app/Extensions/Tasks/TaskSchemaInterface.php (+28 -0)
app/Extensions/Tasks/TaskService.php (+37 -0)
📝 app/Filament/Server/Resources/Schedules/RelationManagers/TasksRelationManager.php (+18 -40)
📝 app/Jobs/Schedule/RunTaskJob.php (+9 -23)
📝 app/Models/Task.php (+10 -11)
app/Providers/Extensions/TaskServiceProvider.php (+31 -0)
📝 bootstrap/providers.php (+1 -0)
📝 lang/en/server/schedule.php (+2 -2)
📝 tests/Integration/Jobs/Schedule/RunTaskJobTest.php (+3 -3)

📄 Description

Same principle as oauth, captcha and avatars. Allows to register custom schedule tasks.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/pelican-dev/panel/pull/1911 **Author:** [@Boy132](https://github.com/Boy132) **Created:** 11/18/2025 **Status:** ✅ Merged **Merged:** 11/24/2025 **Merged by:** [@Boy132](https://github.com/Boy132) **Base:** `main` ← **Head:** `boy132/refactor-tasks` --- ### 📝 Commits (8) - [`d5ecf4d`](https://github.com/pelican-dev/panel/commit/d5ecf4da1bb0ac21b1ab3a559a6509804f257464) refactor schedule tasks - [`c3c53e3`](https://github.com/pelican-dev/panel/commit/c3c53e3b1581767da3e1179561c919a089cace0a) fix null error - [`5fab35b`](https://github.com/pelican-dev/panel/commit/5fab35b59580f397b7f5b6f6bb046497f76b3e95) add getMappings function - [`9ea4cf3`](https://github.com/pelican-dev/panel/commit/9ea4cf30899eccb58af4b6674d5160ef4f8f269c) make phpstan happy - [`64c2de5`](https://github.com/pelican-dev/panel/commit/64c2de5656134669ba0bc4683f5620102ba2cb14) remove consts - [`1acb40b`](https://github.com/pelican-dev/panel/commit/1acb40b51e6d98bd08acf65a55ec5c6df9a71263) add getSchema to task - [`27c79f7`](https://github.com/pelican-dev/panel/commit/27c79f76bd956f9b4f70f8b2b55c872eefbe8a23) fix task creation - [`e05a434`](https://github.com/pelican-dev/panel/commit/e05a434f5c4f10060ecb489874185d77bad92831) Merge remote-tracking branch 'origin/main' into boy132/refactor-tasks ### 📊 Changes **14 files changed** (+342 additions, -79 deletions) <details> <summary>View changed files</summary> ➕ `app/Extensions/Tasks/Schemas/CreateBackupSchema.php` (+32 -0) ➕ `app/Extensions/Tasks/Schemas/DeleteFilesSchema.php` (+26 -0) ➕ `app/Extensions/Tasks/Schemas/PowerActionSchema.php` (+57 -0) ➕ `app/Extensions/Tasks/Schemas/SendCommandSchema.php` (+36 -0) ➕ `app/Extensions/Tasks/Schemas/TaskSchema.php` (+52 -0) ➕ `app/Extensions/Tasks/TaskSchemaInterface.php` (+28 -0) ➕ `app/Extensions/Tasks/TaskService.php` (+37 -0) 📝 `app/Filament/Server/Resources/Schedules/RelationManagers/TasksRelationManager.php` (+18 -40) 📝 `app/Jobs/Schedule/RunTaskJob.php` (+9 -23) 📝 `app/Models/Task.php` (+10 -11) ➕ `app/Providers/Extensions/TaskServiceProvider.php` (+31 -0) 📝 `bootstrap/providers.php` (+1 -0) 📝 `lang/en/server/schedule.php` (+2 -2) 📝 `tests/Integration/Jobs/Schedule/RunTaskJobTest.php` (+3 -3) </details> ### 📄 Description Same principle as oauth, captcha and avatars. Allows to register custom schedule tasks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 20:04:48 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/panel#1651