Skip to content

Scheduler (Developer) ​

Tables scheduled_jobs + scheduled_job_runs (migration 0025; 0070 widens action_type CHECK to include run_engine).

API ​

  • GET/POST/PATCH/DELETE /api/scheduler
  • POST /api/scheduler/preview-next
  • POST /api/scheduler/:id/start|pause
  • GET /api/scheduler/:id/runs

Runtime ​

  • SchedulerRunnerService @Interval(15000)
  • Claim due rows with FOR UPDATE SKIP LOCKED
  • Actions:
    • set_shared_attributes → DeviceAttributesService.saveAttributes (SHARED)
    • send_command → DevicesService.sendCommand
    • run_engine → RuleEngine.runScheduledEngine (action_payload.engineId, Message in scheduled)
  • Kill switch: SCHEDULER_ENABLED

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