diff --git a/src/backend/commons/common-k8s/src/main/java/com/tencent/bk/job/common/k8s/availability/JobApplicationAvailabilityBean.java b/src/backend/commons/common-k8s/src/main/java/com/tencent/bk/job/common/k8s/availability/JobApplicationAvailabilityBean.java index 7125653ac7..b4e680bbe3 100644 --- a/src/backend/commons/common-k8s/src/main/java/com/tencent/bk/job/common/k8s/availability/JobApplicationAvailabilityBean.java +++ b/src/backend/commons/common-k8s/src/main/java/com/tencent/bk/job/common/k8s/availability/JobApplicationAvailabilityBean.java @@ -13,7 +13,7 @@ public void onApplicationEvent(AvailabilityChangeEvent event) { super.onApplicationEvent(event); if (ReadinessState.REFUSING_TRAFFIC == event.getState()) { // SpringCloud负载均衡缓存默认为35s,等待调用方缓存刷新后再真正关闭Spring容器 - int waitSeconds = 60; + int waitSeconds = 40; while (waitSeconds > 0) { ThreadUtils.sleep(1000); log.info("wait for GracefulShutdown, {}s left", waitSeconds--);