Skip to content

Commit

Permalink
Merge pull request #1153 from jsonwan/github_perf/sync_opt
Browse files Browse the repository at this point in the history
perf: 主机与主机关系事件处理优化 #1145
  • Loading branch information
jsonwan authored Jul 28, 2022
2 parents 609303e + a8b83cc commit 23d412e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ private void dispatchEvent(ResourceEvent<HostEventDetail> event) {
ApplicationHostDTO hostInfoDTO = HostEventDetail.toHostInfoDTO(event.getDetail());
Long hostId = hostInfoDTO.getHostId();
ApplicationHostDTO oldHostInfoDTO = applicationHostDAO.getHostById(hostId);
Long appId = oldHostInfoDTO.getBizId();
eventsHandler.commitEvent(appId, event);
eventsHandler.commitEvent(oldHostInfoDTO == null ? null : oldHostInfoDTO.getBizId(), event);
}

public String handleHostWatchResult(ResourceWatchResult<HostEventDetail> hostWatchResult) {
Expand Down
4 changes: 2 additions & 2 deletions support-files/kubernetes/charts/bk-job/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: "bk-job"
description: The BK-JOB is a ops script management and execution system with the capability of dealing with multiple tasks simultaneously.
type: application
version: 0.3.0-rc.8
appVersion: "3.6.0-rc.8"
version: 0.3.0-rc.9
appVersion: "3.6.0-rc.9"

dependencies:
- name: common
Expand Down
22 changes: 11 additions & 11 deletions support-files/kubernetes/charts/bk-job/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ gatewayConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-gateway
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -733,7 +733,7 @@ manageConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-manage
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -791,7 +791,7 @@ executeConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-execute
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -842,7 +842,7 @@ crontabConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-crontab
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -902,7 +902,7 @@ logsvrConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-logsvr
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -957,7 +957,7 @@ backupConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-backup
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -1007,7 +1007,7 @@ analysisConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-analysis
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -1057,7 +1057,7 @@ fileGatewayConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-file-gateway
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -1107,7 +1107,7 @@ fileWorkerConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-file-worker
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -1180,7 +1180,7 @@ frontendConfig:
image:
registry: hub.bktencent.com
repository: blueking/job-frontend
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
pullPolicy: IfNotPresent
pullSecrets: []
replicaCount: 1
Expand Down Expand Up @@ -1241,7 +1241,7 @@ migration:
# 镜像拉取仓库组织与镜像名称
repository: "blueking/job-migration"
# 镜像标签
tag: 3.6.0-rc.8
tag: 3.6.0-rc.9
# 镜像拉取策略
pullPolicy: IfNotPresent

Expand Down

0 comments on commit 23d412e

Please sign in to comment.