private void updateScheduleInfo(ScheduleEntity entity, String errorMsg) {
        if (scheduleEntityMapper.updateByIdSelective(entity) != InlongConstants.AFFECTED_ONE_ROW) {
            LOGGER.error(errorMsg);
            throw new BusinessException(ErrorCodeEnum.CONFIG_EXPIRED);
        }
    }
Update schedule entity and throw exception if update failed.
@param entity to update
@param errorMsg when update failed.
@return
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/schedule/ScheduleServiceImpl.java