schedule:run
Run all due scheduled tasks once. This is typically called by cron every minute.Example Output
Use Case
Add to your crontab to run every minute:schedule:work
Start the scheduler daemon that continuously checks for due tasks every minute.Example Output
Use Case
Ideal for:- Development: Easy testing without setting up cron
- Docker: Run as your container’s scheduler process
- Systemd: Managed as a background service
schedule:list
Display all registered scheduled tasks with their schedules.Example Output
Running Specific Tasks
You can run a specific task by name using the schedule binary directly:Example Output
Prerequisites
Before using schedule commands, you need:- At least one task: Create with
kit make:task TaskName - schedule.rs: Created automatically by
make:task - bin/schedule.rs: Created automatically by
make:task
Summary
| Command | Description |
|---|---|
kit schedule:run | Run all due tasks once (for cron) |
kit schedule:work | Run as daemon (continuous) |
kit schedule:list | List all registered tasks |
cargo run --bin schedule -- run-task <name> | Run specific task |