Three Scheduling Systems
Comis includes three complementary scheduling systems, each designed for a different kind of automated work.Cron Jobs
Cron jobs are recurring tasks that run on a schedule, like “check email every morning” or “send a daily summary at 5pm.” Your agents create and manage cron jobs using the scheduling tools — you configure the limits, and they handle the details.| Setting | Default | What It Does |
|---|---|---|
enabled | true | Whether cron scheduling is active |
maxConcurrentRuns | 3 | How many cron jobs can run simultaneously |
defaultTimezone | "" (UTC) | Default timezone for cron expressions |
maxJobs | 100 | Maximum number of cron jobs allowed (0 = unlimited) |
Heartbeat Monitoring
The heartbeat system runs periodic health checks at regular intervals (every 5 minutes by default). This is how the monitoring sources — disk space, CPU, memory, systemd services, and security updates — get checked.| Setting | Default | What It Does |
|---|---|---|
intervalMs | 300000 (5 min) | How often health checks run |
alertThreshold | 2 | Consecutive failures required before sending an alert |
alertCooldownMs | 300000 (5 min) | Minimum time between repeated alerts for the same issue |
staleMs | 120000 (2 min) | If a check runs longer than this, it is considered stuck |
showOk | false | Whether to include healthy sources in the report |
showAlerts | true | Whether to include alerts in the report |
Task Extraction
During a conversation, your agent might notice follow-up work — “I should check back on this tomorrow” or “remind the user about that deadline.” Task extraction lets agents automatically schedule these follow-ups.Task extraction is disabled by default because it requires the agent to make judgment calls about what to schedule. Enable it once you are comfortable with how your agents behave and want them to proactively follow up on conversations.
Quiet Hours
Quiet hours prevent non-critical scheduled tasks from running during specified times — for example, overnight when you do not want notifications.Safety
The scheduler includes several safety mechanisms to prevent runaway tasks:- Lock files prevent the same cron job from running twice simultaneously
maxConcurrentRunslimits how many jobs can execute at the same time (default: 3)staleMsdetects stuck tasks that have been running too long (default: 2 minutes)maxJobscaps the total number of scheduled jobs (default: 100)
Full Configuration Reference
Related Pages
Monitoring
The 5 health sources checked by heartbeat
Daemon
The process that runs the scheduler
Agent Lifecycle
How agents process messages and use tools
Scheduler View
View and manage scheduled tasks in the dashboard
