From 9fbaa6d2f72d3ca5281f6527c76483160d221a06 Mon Sep 17 00:00:00 2001 From: felixncheng Date: Mon, 25 Nov 2024 16:31:24 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E4=BF=AE=E5=A4=8D=E5=A4=A7=E5=86=99?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=90=8D=E7=9A=84=E4=BB=BB=E5=8A=A1=E8=B0=83?= =?UTF-8?q?=E5=BA=A6=E9=85=8D=E7=BD=AE=E5=88=B7=E6=96=B0=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=20#2787?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bkrepo/job/listener/RefreshJobPropertiesListener.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/listener/RefreshJobPropertiesListener.kt b/src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/listener/RefreshJobPropertiesListener.kt index 50b5685e85..3338a75df1 100644 --- a/src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/listener/RefreshJobPropertiesListener.kt +++ b/src/backend/job/biz-job/src/main/kotlin/com/tencent/bkrepo/job/listener/RefreshJobPropertiesListener.kt @@ -53,7 +53,8 @@ class RefreshJobPropertiesListener(private val jobRegistrar: JobRegistrar) : Sma refreshKeys.forEach { key -> try { val jobName = key.substring(4, key.indexOf(".", 4)) - .replace(pattern) { it.value.last().uppercase() } + JOB_SUFFIX + .replace(pattern) { it.value.last().uppercase() } + .replaceFirstChar { it.lowercase() } + JOB_SUFFIX val jobBean = SpringContextUtils.getBean(BatchJob::class.java, jobName) logger.info("Job [$jobName] config updated") val job = JobUtils.parseBatchJob(jobBean)