Skip to content

Scheduling

ModelReins supports scheduled jobs that run automatically at defined intervals. Useful for recurring tasks like daily summaries, periodic code scans, or batch processing.

Schedules are created in the dashboard at app.modelreins.com (Schedules tab) or via the API.

Cron-based example (API):

Terminal window
curl -X POST https://app.modelreins.com/api/schedules \
-H "Authorization: Bearer $MODELREINS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "daily-summary",
"cron": "0 9 * * *",
"prompt": "Summarize yesterday's git commits",
"provider": "ollama"
}'

Interval-based example (API):

Terminal window
curl -X POST https://app.modelreins.com/api/schedules \
-H "Authorization: Bearer $MODELREINS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "health-check",
"interval": "30m",
"prompt": "Check these endpoints and report any failures"
}'

Use the dashboard Schedules tab or the API:

ActionDashboardAPI
List allSchedules tabGET /api/schedules
PauseToggle on schedule cardPUT /api/schedules/:name with {"status":"paused"}
ResumeToggle on schedule cardPUT /api/schedules/:name with {"status":"active"}
DeleteDelete buttonDELETE /api/schedules/:name
View historyClick schedule → Runs tabGET /api/schedules/:name/history

Scheduled jobs follow the same routing rules as manually dispatched jobs.