ez-cronjobFix common cron job failures in Clawdbot/Moltbot - message delivery issues, tool timeouts, timezone bugs, and model fallback problems.
Install via ClawdBot CLI:
clawdbot install ProMadGenius/ez-cronjobA comprehensive guide to diagnosing and fixing cron job issues in Clawdbot/Moltbot. This skill documents common failure patterns and their solutions, learned through production debugging.
Use this skill when:
cron toolAlways use these flags together for reliable delivery:
clawdbot cron add \
--name "my-job" \
--cron "0 9 * * 1-5" \
--tz "America/New_York" \
--session isolated \
--message "[INSTRUCTION: DO NOT USE ANY TOOLS] Your prompt here" \
--deliver --channel telegram --to "CHAT_ID" \
--best-effort-deliver
| Flag | Purpose | Why It Matters |
|------|---------|----------------|
| --session isolated | Creates dedicated session | Prevents message loss in busy conversations |
| --tz "TIMEZONE" | Sets explicit timezone | Avoids UTC confusion |
| --deliver | Sends to channel | Required for Telegram/WhatsApp |
| --best-effort-deliver | Don't fail on delivery error | Graceful degradation |
cron Tool Deadlockcron list or cron addThe internal cron tool creates a deadlock between the agent process and gateway.
Never use the cron tool directly. Use exec (or bash) instead:
# CORRECT - uses exec to bypass deadlock
exec: clawdbot cron list
exec: clawdbot cron add --name "reminder" --at "+5m" --message "Hello"
# INCORRECT - causes timeout
cron list # DO NOT USE
cron add ... # DO NOT USE
If you're an AI agent reading this: when the user asks you to manage cron jobs, always use the exec/bash tool to run clawdbot cron commands. Never invoke the cron tool directly.
Using --session main or --system-event causes messages to get lost when there's an active conversation in the main session.
Always use --session isolated:
# CORRECT - isolated session, guaranteed delivery
clawdbot cron add \
--name "daily-standup" \
--cron "0 9 * * 1-5" \
--session isolated \
--deliver --channel telegram --to "-100XXXXXXXXXX"
# INCORRECT - messages can be lost
clawdbot cron add \
--name "daily-standup" \
--session main \
--system-event \
...
After creating a job, test it:
# Run the job immediately to verify delivery
clawdbot cron run <job-id>
Missing timezone specification defaults to UTC.
Always specify timezone explicitly:
# CORRECT - explicit timezone
clawdbot cron add \
--cron "0 9 * * 1-5" \
--tz "America/New_York" \
...
# INCORRECT - defaults to UTC
clawdbot cron add \
--cron "0 9 * * 1-5" \
...
| Region | Timezone ID |
|--------|-------------|
| US Eastern | America/New_York |
| US Pacific | America/Los_Angeles |
| UK | Europe/London |
| Central Europe | Europe/Berlin |
| India | Asia/Kolkata |
| Japan | Asia/Tokyo |
| Australia Eastern | Australia/Sydney |
| Brazil | America/Sao_Paulo |
| Bolivia | America/La_Paz |
exec, read, or other tools when it shouldn'tSome fallback models (especially smaller/faster ones) don't follow system instructions as strictly as primary models.
Embed instructions directly in the message:
# CORRECT - instruction embedded in message
clawdbot cron add \
--message "[INSTRUCTION: DO NOT USE ANY TOOLS. Respond with text only.]
Generate a motivational Monday message for the team."
# INCORRECT - relies only on system prompt
clawdbot cron add \
--message "Generate a motivational Monday message for the team."
[INSTRUCTION: DO NOT USE ANY TOOLS. Write your response directly.]
Your actual prompt here. Be specific about what you want.
# Check job details
clawdbot cron show <job-id>
# Check recent logs
tail -100 /tmp/clawdbot/clawdbot-$(date +%Y-%m-%d).log | grep -i cron
# Check gateway errors
tail -50 ~/.clawdbot/logs/gateway.err.log
| Cause | Fix |
|-------|-----|
| Model quota exceeded | Wait for quota reset or switch model |
| Invalid chat ID | Verify channel ID with --to |
| Bot removed from group | Re-add bot to Telegram group |
| Gateway not running | clawdbot gateway restart |
If nothing works:
# Remove the problematic job
clawdbot cron rm <job-id>
# Restart gateway
clawdbot gateway restart
# Recreate with correct flags
clawdbot cron add ... (with all recommended flags)
clawdbot cron list
clawdbot cron show <job-id>
clawdbot cron run <job-id>
# Today's logs filtered for cron
tail -200 /tmp/clawdbot/clawdbot-$(date +%Y-%m-%d).log | grep -i cron
# Gateway errors
tail -100 ~/.clawdbot/logs/gateway.err.log
# Watch logs in real-time
tail -f /tmp/clawdbot/clawdbot-$(date +%Y-%m-%d).log | grep --line-buffered cron
clawdbot gateway restart
clawdbot cron add \
--name "daily-standup-9am" \
--cron "0 9 * * 1-5" \
--tz "America/New_York" \
--session isolated \
--message "[INSTRUCTION: DO NOT USE ANY TOOLS. Write directly.]
Good morning team! Time for our daily standup.
Please share:
1. What did you accomplish yesterday?
2. What are you working on today?
3. Any blockers?
@alice @bob" \
--deliver --channel telegram --to "-100XXXXXXXXXX" \
--best-effort-deliver
clawdbot cron add \
--name "quick-reminder" \
--at "+20m" \
--delete-after-run \
--session isolated \
--message "[INSTRUCTION: DO NOT USE ANY TOOLS.]
Reminder: Your meeting starts in 10 minutes!" \
--deliver --channel telegram --to "-100XXXXXXXXXX" \
--best-effort-deliver
clawdbot cron add \
--name "weekly-report-friday" \
--cron "0 17 * * 5" \
--tz "America/New_York" \
--session isolated \
--message "[INSTRUCTION: DO NOT USE ANY TOOLS.]
Happy Friday! Time to wrap up the week.
Please share your weekly highlights and any items carrying over to next week." \
--deliver --channel telegram --to "-100XXXXXXXXXX" \
--best-effort-deliver
Before creating any cron job, verify:
exec: clawdbot cron add (not the cron tool directly)--session isolated is set--tz "YOUR_TIMEZONE" is explicit--deliver --channel CHANNEL --to "ID" for message delivery--best-effort-deliver for graceful failures[INSTRUCTION: DO NOT USE ANY TOOLS]clawdbot cron run after creationSkill authored by Isaac Zarzuri. Based on production debugging experience with Clawdbot/Moltbot.
Generated Mar 1, 2026
An online retailer uses this skill to schedule daily promotional messages and cart abandonment reminders to Telegram customer groups. By ensuring reliable delivery with isolated sessions and explicit timezones, they maintain consistent communication without manual intervention, boosting engagement and sales.
A distributed tech startup schedules daily stand-up reminders and weekly meeting notifications via Telegram. The skill helps avoid timezone bugs by specifying regional timezones, ensuring all team members receive messages at the correct local times, improving productivity and coordination.
A media company automates the posting of news updates and social media content to Telegram channels. Using the skill's best-effort delivery and fallback model instructions, they prevent tool timeouts and ensure messages are sent reliably, even during high-traffic periods.
A wellness app schedules personalized health tips and medication reminders for users via Telegram. The skill's troubleshooting for cron job errors and message delivery issues ensures high reliability, helping users adhere to their routines without disruptions.
An online learning platform sends automated class reminders and assignment deadlines to student Telegram groups. By embedding instructions in messages to prevent fallback model issues, they maintain clear, tool-free communication, enhancing student engagement and compliance.
Offer this skill as part of a subscription service for businesses needing reliable cron job management. Charge monthly fees based on the number of scheduled jobs or message volume, providing ongoing support and updates for troubleshooting features.
Provide consulting services to help companies integrate and optimize this skill for their specific use cases. Offer one-time setup fees and ongoing maintenance contracts, leveraging expertise in Clawdbot/Moltbot environments to ensure smooth operation.
Release the skill as open-source with basic functionality, then monetize advanced features like analytics dashboards, priority support, or custom timezone handling. Upsell to enterprises needing enhanced reliability and scalability.
💬 Integration Tip
Start by testing cron jobs in a sandbox environment using the exec tool to avoid deadlocks, and always specify timezones and isolated sessions for reliable delivery.
A fast Rust-based headless browser automation CLI with Node.js fallback that enables AI agents to navigate, click, type, and snapshot pages via structured commands.
Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications.
Advanced desktop automation with mouse, keyboard, and screen control
Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating/deactivating, checking execution status, manually triggering workflows, or debugging automation issues.
Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to automate, building workflows across tools, setting up triggers and actions, or optimizing existing automations. Covers automation opportunity identification, workflow design, tool selection (Zapier, Make, n8n), testing, and maintenance. Trigger on "automate", "automation", "workflow automation", "save time", "reduce manual work", "automate my business", "no-code automation".
Browser automation via Playwright MCP server. Navigate websites, click elements, fill forms, extract data, take screenshots, and perform full browser automation workflows.