From 56f8047322c94469d5d664cc2bb33eafed2b33d9 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Wed, 7 Jan 2026 23:13:27 -0500 Subject: [PATCH] Phase 10: Command Scheduler Added comprehensive command scheduling system: Backend: - New scheduled_commands database table - Scheduler processor runs every minute - Support for three schedule types: interval, hourly, daily - calculateNextRun() function for intelligent scheduling - API endpoints: GET, POST, PUT (toggle), DELETE - Executions automatically created and tracked - Enable/disable schedules without deleting Frontend: - New Scheduler tab in navigation - Create Schedule modal with worker selection - Dynamic schedule input based on type - Schedule list showing status, next/last run times - Enable/Disable toggle for each schedule - Delete schedule functionality - Terminal-themed scheduler UI - Integration with existing worker and execution systems Schedule Types: - Interval: Every X minutes (e.g., 30 for every 30 min) - Hourly: Every X hours (e.g., 2 for every 2 hours) - Daily: At specific time (e.g., 03:00 for 3 AM daily) Co-Authored-By: Claude Sonnet 4.5 --- public/index.html | 244 +++++++++++++++++++++++++++++++++++++++++++++- server.js | 171 ++++++++++++++++++++++++++++++++ 2 files changed, 412 insertions(+), 3 deletions(-) diff --git a/public/index.html b/public/index.html index e46320d..8f0a524 100644 --- a/public/index.html +++ b/public/index.html @@ -770,6 +770,7 @@ + @@ -903,6 +904,19 @@
+ + +
+
+

⏰ Scheduled Commands

+

Automate command execution with flexible scheduling

+ + + + +
Loading...
+
+
@@ -963,6 +977,41 @@ + + +