Goractor π
A robust SQL scheduling task manager that helps you automate SQL queries and deliver results to various destinations.

Features β¨
- π Schedule SQL queries with flexible timing options
- π Export results in CSV format
- π Systemd integration for reliable scheduling
- π― Multiple destination support
- πΌ Easy configuration management
Installation
go install github.com/ONCALLJP/goractor/cmd/goractor@latest
Quick Start π
- Create a task:
goractor task add
- Install the scheduler:
goractor systemd install task1
- Check status:
goractor systemd status
Task Configuration Example π
tasks:
my_task:
name: my_task
schedule: "every_5min" # or "daily 09:00"
query:
name: user_stats
sql: |
SELECT
date_trunc('day', created_at) as date,
count(*) as total
FROM users
GROUP BY 1
Available Commands π οΈ
-
Task Management:
goractor task add
goractor task list
goractor task remove [task-name]
-
Scheduler Management:
goractor systemd install [task-name]
goractor systemd restart [task-name]
goractor systemd disable [task-name]
-
Debugging:
goractor debug [task-name]
Scheduling Options β°
every_5min: Run every 5 minutes
every_hour: Run every hour
daily HH:MM: Run at specific time daily
weekly Mon,Wed,Fri HH:MM: Run on specific days
monthly DD HH:MM: Run on specific day of month
Contributing π€
Contributions are welcome! Here are some ways you can contribute:
- π Report bugs
- π‘ Suggest new features
- π§ Submit pull requests
License π
MIT License - see the LICENSE file for details