Cron & Scheduling
Cron & Scheduling System
Section titled “Cron & Scheduling System”Dewee includes an in-process cron scheduler (internal/cron/) supporting standard cron expressions and human-friendly interval strings like @every 24h or @every 30m.
Overview & Architecture
Section titled “Overview & Architecture”The scheduler manages two distinct classes of scheduled executions:
- Agent Scheduled Tasks: Dispatches user-configured prompts and workflow triggers to specific agents at scheduled intervals.
- Operator System Tasks: Runs recurring background jobs such as periodic memory consolidation, session compaction, and license status checks.
CLI Management Workflows
Section titled “CLI Management Workflows”# Create a daily summary cron taskdewee cron create --name "daily-standup" --schedule "@every 24h" --message "Summarize yesterday activities"
# List all active and paused cron jobsdewee cron list
# Inspect detailed status of a specific jobdewee cron get <job-id-or-name>
# Trigger immediate execution of a scheduled jobdewee cron run <job-id-or-name>
# Inspect execution history runsdewee cron runs <job-id-or-name>
# Enable or disable a jobdewee cron toggle <job-id> true
# Delete a scheduled jobdewee cron delete <job-id>Failure Recovery & Error Handling
Section titled “Failure Recovery & Error Handling”- If an agent is busy during scheduled execution, the task queues in the background event queue with exponential backoff.
- Failed executions log structured errors with trace correlation IDs visible via
dewee traces list.