A lightweight and efficient task scheduler built with Go.
Allows users to add, list, and delete scheduled tasks that run at defined intervals.
✅ Schedule recurring tasks (e.g., every 5 minutes, every hour)
✅ Manage tasks via CLI (add, list, delete)
✅ Persistent task storage using JSON
✅ Multi-task execution with Goroutines
✅ Real-time task execution tracking
git clone https://github.com/yourusername/task-scheduler.git
cd task-scheduler
go mod tidy
go build -o scheduler
./scheduleradd "Task Name" X "Task Description"Example:
add "DB Backup" 60 "Backup PostgreSQL database"listExample Output:
📋 Scheduled Tasks:
🔹 ID 1 | Name: DB Backup | Schedule: 60 min | Desc: Backup PostgreSQL database
delete 1✅ If successful:
✅ Deleted task 1
❌ If the task ID does not exist:
❌ Task not found
- Automate database backups (
pg_dumpevery hour) - Run API polling (
GET requestevery 5 minutes) - Schedule periodic file cleanup (delete temp files every 30 minutes)
- Trigger IoT actions (e.g., turn on lights at scheduled times)
✅ Web UI for task management
✅ Integration with Redis or PostgreSQL
✅ Support for cron-like scheduling
✅ WebSockets for real-time updates
This project is MIT Licensed – Free to modify and use.
Fork the repo & submit pull requests! 🚀
📧 Email: iamoluwaseyiolasupo@gmail.com
🐙 GitHub: (https://github.com/Oluwaseyi3)