feat(info-query): 使用tags来区分重点表与否
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package com.lanyuanxiaoyao.service.scheduler.quartz.compaction;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.lanyuanxiaoyao.service.common.Constants;
|
||||
import com.lanyuanxiaoyao.service.common.utils.TableMetaHelper;
|
||||
import com.lanyuanxiaoyao.service.forest.service.HudiService;
|
||||
import com.lanyuanxiaoyao.service.forest.service.InfoService;
|
||||
import com.lanyuanxiaoyao.service.scheduler.utils.ScheduleHelper;
|
||||
@@ -44,7 +46,7 @@ public class FocusScheduleJob extends BaseScheduleJob {
|
||||
infoService,
|
||||
hudiService,
|
||||
mapper,
|
||||
meta -> meta.getPriority() >= 10000,
|
||||
meta -> TableMetaHelper.existsTag(meta.getTags(), Constants.TAGS_FOCUS),
|
||||
comment
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,8 @@ package com.lanyuanxiaoyao.service.scheduler.quartz.compaction;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.lanyuanxiaoyao.service.common.Constants;
|
||||
import com.lanyuanxiaoyao.service.common.utils.TableMetaHelper;
|
||||
import com.lanyuanxiaoyao.service.forest.service.HudiService;
|
||||
import com.lanyuanxiaoyao.service.forest.service.InfoService;
|
||||
import com.lanyuanxiaoyao.service.scheduler.utils.ScheduleHelper;
|
||||
@@ -47,7 +49,7 @@ public class FocusUnVersionUpdateScheduleJob extends BaseScheduleJob {
|
||||
infoService,
|
||||
hudiService,
|
||||
mapper,
|
||||
meta -> meta.getPriority() >= 10000
|
||||
meta -> TableMetaHelper.existsTag(meta.getTags(), Constants.TAGS_FOCUS)
|
||||
&& unUpdateVersionTableIds.contains(StrUtil.format("{}-{}", meta.getFlinkJobId(), meta.getAlias())),
|
||||
comment
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user