public static ScheduleType fromCode(int code) {
        for (ScheduleType type : ScheduleType.values()) {
            if (type.code == code) {
                return type;
            }
        }
        return null;
    }
Type of schedule, including normal and crontab.
inlong-manager/manager-schedule/src/main/java/org/apache/inlong/manager/schedule/ScheduleType.java