urbanairship-core/src/main/java/com/urbanairship/automation/AutomationEngine.java
@WorkerThread
    private void resetExecutingSchedules() {
        List<ScheduleEntry> entries = dataManager.getScheduleEntries(ScheduleEntry.STATE_EXECUTING,
                ScheduleEntry.STATE_WAITING_SCHEDULE_CONDITIONS);

        if (entries.isEmpty()) {
            return;
        }

        for (ScheduleEntry entry : entries) {
            entry.setExecutionState(ScheduleEntry.STATE_PREPARING_SCHEDULE);
        }

        dataManager.saveSchedules(entries);
        Logger.verbose("AutomationEngine: Schedules reset state to STATE_PREPARING_SCHEDULE: " + entries);
    }
/**
     * Resets the schedules that were executing back to pending execution.
     */
Resets the schedules that were executing back to pending execution.
Resets the schedules that were executing back to pending execution .
@WorkerThread
    private void resetExecutingSchedules() {
        List<ScheduleEntry> entries = dataManager.getScheduleEntries(ScheduleEntry.STATE_EXECUTING,
                ScheduleEntry.STATE_WAITING_SCHEDULE_CONDITIONS);
        if (entries.isEmpty()) {
            return;
        }
        for (ScheduleEntry entry : entries) {
            entry.setExecutionState(ScheduleEntry.STATE_PREPARING_SCHEDULE);
        }
        dataManager.saveSchedules(entries);
        Logger.verbose("AutomationEngine: Schedules reset state to STATE_PREPARING_SCHEDULE: " + entries);
    }
@ WorkerThread private void resetExecutingSchedules ( ) { List < ScheduleEntry > entries = dataManager . getScheduleEntries ( ScheduleEntry . STATE_EXECUTING , ScheduleEntry . STATE_WAITING_SCHEDULE_CONDITIONS ) ; if ( entries . isEmpty ( ) ) { return ; } for ( ScheduleEntry entry : entries ) { entry . setExecutionState ( ScheduleEntry . STATE_PREPARING_SCHEDULE ) ; } dataManager . saveSchedules ( entries ) ; Logger . verbose ( "AutomationEngine: Schedules reset state to STATE_PREPARING_SCHEDULE: " + entries ) ; }
Resets the schedules that were executing back to pending execution.
Resets the schedules that were executing back to pending execution .