Scheduler
MicroClaw includes a background scheduler that runs every 60 seconds and executes due tasks.
Task types
- Recurring tasks via cron expressions
- One-time tasks at a specific timestamp
Cron format
MicroClaw uses 6-field cron expressions:
sec min hour dom month dow
Example: every 5 minutes
0 */5 * * * *
How it runs
- Poll
scheduled_taskswherestatus = 'active'andnext_run <= now - For each due task, call the agent loop with the stored prompt
- Send the response to the original chat
- Update
next_run(cron) or mark ascompleted(one-time)
next_run is normalized and stored as UTC RFC3339 timestamps for both cron and one-time tasks.
Manage tasks
"List my scheduled tasks"
"Pause task #3"
"Resume task #3"
"Cancel task #3"