Skip to content

Commit

Permalink
bug: 修复大写任务名的任务调度配置刷新不生效 TencentBlueKing#2787
Browse files Browse the repository at this point in the history
  • Loading branch information
felixncheng authored Nov 28, 2024
1 parent 6290bb2 commit 6176070
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6176070

Please sign in to comment.