cron-masteryMaster OpenClaw's timing systems. Use for scheduling reliable reminders, setting up periodic maintenance (janitor jobs), and understanding when to use Cron v...
Install via ClawdBot CLI:
clawdbot install i-mw/cron-masteryRule #1: Heartbeats drift. Cron is precise.
This skill provides the definitive guide for managing time in OpenClaw 2026.2.15+. It solves the "I missed my reminder" problem by enforcing a strict separation between casual checks (heartbeat) and hard schedules (cron).
| System | Behavior | Best For | Risk |
| :--- | :--- | :--- | :--- |
| Heartbeat | "I'll check in when I can" (e.g., every 30-60m) | Email checks, casual news summaries, low-priority polling. | Drift: A "remind me in 10m" task will fail if the heartbeat is 30m. |
| Cron | "I will run at exactly X time" | Reminders ("in 5 mins"), daily reports, system maintenance. | Clutter: Creates one-off jobs that need cleanup. |
Rule: Never use act:wait or internal loops for long delays (>1 min). Use cron:add with a one-shot at schedule.
While Cron is precise, execution depends on the Gateway Heartbeat (typically every 10-60s). A job set for :00 seconds will fire on the first "tick" after that time. Expect up to ~30s of variance depending on your gateway config.
Use this payload structure for "remind me in X minutes" tasks.
Key Features (v2026.2.15+):
nextRunAtMs corruption and "Add-then-Update" deadlocks are resolved.deleteAfterRun: true).CRITICAL: Push Notifications vs. Silent Logs
For push-notification reminders (Reliable):
{
"name": "Remind: Water",
"schedule": { "kind": "at", "at": "2026-02-06T01:30:00Z" },
"payload": {
"kind": "agentTurn",
"message": "DELIVER THIS EXACT MESSAGE TO THE USER WITHOUT MODIFICATION OR COMMENTARY:\n\nš§ Drink water, Momo!"
},
"sessionTarget": "isolated",
"delivery": { "mode": "announce", "channel": "telegram", "to": "1027899060" }
}
For background logs (Silent):
{
"name": "Log: System Pulse",
"schedule": { "kind": "every", "everyMs": 3600000 },
"payload": {
"kind": "systemEvent",
"text": "[PULSE] System healthy."
},
"sessionTarget": "main"
}
Pre-2026.2.15, the "Add-then-Update" pattern caused deadlocks. While this is now stabilized, it is still best practice to pass all parameters (including wakeMode: "now") directly in the initial cron.add call for maximum efficiency.
Note: As of v2026.2.14, OpenClaw includes maintenance recompute semantics. The gateway now automatically cleans up stuck jobs and repairs corrupted schedules.
Manual cleanup is only needed for:
deleteAfterRun: false.sessionTarget: "main"? (CRITICAL)Sub-agents (isolated) often have restricted tool policies and cannot call gateway or delete other cron jobs. For system maintenance like the Janitor, always target the main session via systemEvent so the primary agent (with full tool access) performs the cleanup.
For cron to work, the agent must know its time.
MEMORY.md.Timezone: Cairo (GMT+2)Problem: If you say "I'll wait 30 seconds" and end your turn, you go to sleep. You cannot wake up without an event.
Solution: If you need to "wait" across turns, you MUST schedule a Cron job.
act:wait).wakeMode: "now".If you have old cron jobs using these patterns, update them:
| Legacy (Pre-2026.2.3) | Modern (2026.2.15+) |
| :--- | :--- |
| "schedule": {"kind": "at", "atMs": 1234567890} | "schedule": {"kind": "at", "at": "2026-02-06T01:30:00Z"} |
| "deliver": true in payload | Not needed - announce mode handles delivery |
| "sessionTarget": "main" | "sessionTarget": "isolated" (default behavior) |
| Manual ghost cleanup required | One-shots auto-delete (deleteAfterRun: true) |
| cron.update after cron.add | Single-step cron.add with all properties |
cron:list. Verify the at timestamp is in the future (ISO 8601 format). Ensure wakeMode: "now" is set.cron tool takes too long (huge job list or file lock). ~/.openclaw/state/cron/jobs.json and restart the gateway if it's corrupted.agentTurn + announce mode for proactive pings."DELIVER THIS EXACT MESSAGE TO THE USER WITHOUT MODIFICATION OR COMMENTARY:\n\nš§ Your message here"Generated Mar 1, 2026
Users can set precise medication reminders, hydration alerts, or exercise prompts that deliver push notifications directly to their phones. This ensures critical health tasks aren't missed due to heartbeat drift, making it ideal for managing chronic conditions or building consistent habits.
Companies can schedule daily sales summaries, inventory updates, or performance dashboards to be generated and delivered at exact times. Using systemEvent payloads ensures silent logging without interrupting teams, while agentTurn can proactively alert managers about critical metrics.
Content creators and marketers can queue posts for optimal engagement times across different time zones. The timezone lock feature ensures posts publish at the correct local time, while one-shot jobs auto-cleanup after execution to prevent clutter.
Homeowners can automate periodic maintenance tasks like filter replacements, system checks, or garden watering schedules. Using the janitor pattern with main session targeting allows the primary agent to perform cleanup operations that isolated sub-agents cannot execute.
Users receive precise notifications for bill payments, investment reviews, or subscription renewals. The strict instruction pattern ensures messages deliver exactly as written without AI commentary, which is critical for financial communication clarity.
Offer tiered subscription plans for individuals and businesses needing reliable scheduling. Basic plans could include simple reminders, while enterprise plans offer advanced features like multi-channel delivery, analytics, and team collaboration tools.
License the cron mastery technology to hospitals, clinics, and telehealth platforms for patient medication adherence programs. The precise timing and push notification capabilities make it suitable for critical healthcare applications where timing matters.
Provide implementation and customization services for businesses looking to automate their workflows. This includes integrating cron scheduling with existing systems, training teams, and creating custom automation patterns for specific industry needs.
š¬ Integration Tip
Always validate timezone information before scheduling and use the strict instruction pattern with agentTurn for reliable push notifications that won't get lost in chat history.
Manage Trello boards, lists, and cards via the Trello REST API.
Sync and query CalDAV calendars (iCloud, Google, Fastmail, Nextcloud, etc.) using vdirsyncer + khal. Works on Linux.
Manage tasks and projects in Todoist. Use when user asks about tasks, to-dos, reminders, or productivity.
Calendar management and scheduling. Create events, manage meetings, and sync across calendar providers.
Kanban-style task management dashboard for AI assistants. Manage tasks via CLI or dashboard UI. Use when user mentions tasks, kanban, task board, mission con...
Query and manage Linear issues, projects, and team workflows.