Skip to content

Commit

Permalink
feat: 【加速数据Turbo】加速次数支持根据场景统计 TencentBlueKing#81
Browse files Browse the repository at this point in the history
  • Loading branch information
eazence committed Jun 5, 2023
1 parent 361ecd3 commit 15ea08a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/backend/turbo/biz-turbo/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
dependencies {
api(project(":api-turbo"))
api(project(":model-turbo"))
api(project(":common-turbo:common-turbo-api"))
api(project(":common-turbo:common-turbo-client"))
api(project(":common-turbo:common-turbo-web"))
api(project(":common-turbo:common-turbo-quartz"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package com.tencent.devops.turbo.service
import com.fasterxml.jackson.core.type.TypeReference
import com.tencent.devops.common.api.exception.TurboException
import com.tencent.devops.common.api.exception.code.TURBO_THIRDPARTY_SYSTEM_FAIL
import com.tencent.devops.common.api.util.OkhttpUtil
import com.tencent.devops.common.api.util.OkhttpUtils
import com.tencent.devops.common.util.JsonUtil
import com.tencent.devops.turbo.dao.repository.TurboRecordRepository
import com.tencent.devops.turbo.dao.repository.TurboWorkJobStatsDataRepository
Expand Down Expand Up @@ -41,7 +41,7 @@ class TurboWorkStatService @Autowired constructor(
*/
fun getTbsWorkStatData(turboRecordId: String): TurboWorkStatsDto {
val tbsWorkStatDataStr: String = try {
OkhttpUtil.doGet(
OkhttpUtils.doGet(
url = "$tbsRootPath/api/v1/disttask/work_stats/?decode_job=1&task_id=$turboRecordId"
)
} catch (e: Exception) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object OkhttpUtils {
.url(url)
.get()
if (headers.isNotEmpty()) {
headers.forEach { key, value ->
headers.forEach { (key, value) ->
requestBuilder.addHeader(key, value)
}
}
Expand Down

0 comments on commit 15ea08a

Please sign in to comment.