Scheduling
ModelReins supports scheduled jobs that run automatically at defined intervals. Useful for recurring tasks like daily summaries, periodic code scans, or batch processing.
Create a schedule
Section titled “Create a schedule”modelreins schedule create \ --name "daily-summary" \ --cron "0 9 * * *" \ --prompt "Summarize yesterday's git commits" \ --input-cmd "git log --since=yesterday --oneline" \ --provider ollamaInterval-based scheduling
Section titled “Interval-based scheduling”modelreins schedule create \ --name "health-check" \ --interval 30m \ --prompt "Check these endpoints and report any failures" \ --input ./endpoints.jsonManaging schedules
Section titled “Managing schedules”modelreins schedule list # View all schedulesmodelreins schedule pause <name> # Pause a schedulemodelreins schedule resume <name> # Resume a paused schedulemodelreins schedule delete <name> # Remove a schedulemodelreins schedule history <name> # See past runs and resultsConfiguration file
Section titled “Configuration file”{ "schedules": [ { "name": "daily-summary", "cron": "0 9 * * *", "prompt": "Summarize yesterday's git commits", "provider": "ollama", "tier": "low" } ]}Scheduled jobs follow the same routing rules as manually dispatched jobs.