@Override
    public Boolean handleGroupApprove(String groupId) {
        // if the inlong group exist without schedule info
        // then, save the new schedule info when updating inlong group
        if (!scheduleInfoExist(groupId)) {
            LOGGER.warn("schedule info not exist for group {}", groupId);
            return false;
        }
        // change schedule state to approved
        scheduleService.updateStatus(groupId, APPROVED, null);
        return registerToScheduleEngine(getScheduleInfo(groupId), null, false);
    }
There are three places may trigger resister schedule info to schedule engine:
- 1. new group approved with schedule info
- 2. new schedule info for an exist approved inlong group added
- 3. group's schedule info updated
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/schedule/ScheduleOperatorImpl.java