✅ Code import com.adeptia.indigo.event.SchedulerStatus; try { if (SchedulerStatus.isSchedulerRunning()) { context.put("restResponse", "Scheduler is stopped."); } else if (SchedulerStatus.isSchedulerPause()) { context.put("restResponse", "Scheduler is paused."); } else { context.put("restResponse", "Scheduler is running."); } } catch (Exception e) { service.getLogger().error("Error while checking scheduler status: " + e.getMessage()); }