Skip to content

Scheduler ​

The scheduler runs timed jobs against one or more devices: set shared attributes, send a command, or run a Started rule engine.

When to use ​

  • Daily pump / relay on-off windows
  • Periodic setpoint writes
  • One-shot deferred commands
  • Interval heartbeats / ping commands
  • Fire a rule-engine chain on a clock (scheduled message)

Schedule types ​

TypeConfig
oncerunAt timestamp (must be future when created/started)
cron5-field cron + timezone (default tenant zone, often Asia/Kolkata)
intervalEvery N seconds (minimum 60)

Actions ​

ActionBehavior
set_shared_attributesWrites SHARED scope (reboot-safe control path)
send_commandDevice command / RPC payload
run_engineRuns one Started rule engine per device (engineId in payload; Message in must accept scheduled)

UI ​

  • Scheduler — /scheduler
  • Create / edit in a modal (no separate /scheduler/new route)
  • Activate / Pause; Completed one-shots stay Completed
  • Preview next run while editing
  • Last error on the list; Runs drawer for recent history
  • Report email schedules stay under Reports

Ops ​

  • Runner ticks every 15s
  • Multi-instance safe (FOR UPDATE SKIP LOCKED)
  • Kill switch: SCHEDULER_ENABLED=false
  • Migrations: 0025_scheduled_jobs.sql, 0070_scheduler_run_engine.sql (adds run_engine to the action CHECK)

support@autoconnecto.in · founder@autoconnecto.in · +91 92121 00555 · app.autoconnecto.in