From 44228c9953c07c5ae6341446afacfde5131b12ad Mon Sep 17 00:00:00 2001 From: sawyersong2 Date: Fri, 15 Oct 2021 12:26:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B5=81=E6=B0=B4=E7=BA=BFJob=E9=85=8D?= =?UTF-8?q?=E9=A2=9D=E7=AE=A1=E7=90=86=20#5154?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devops/worker/common/api/quota/QuotaResourceApi.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backend/ci/core/worker/worker-api-sdk/src/main/kotlin/com/tencent/devops/worker/common/api/quota/QuotaResourceApi.kt b/src/backend/ci/core/worker/worker-api-sdk/src/main/kotlin/com/tencent/devops/worker/common/api/quota/QuotaResourceApi.kt index f800f1e432b..f6a5ed9156b 100644 --- a/src/backend/ci/core/worker/worker-api-sdk/src/main/kotlin/com/tencent/devops/worker/common/api/quota/QuotaResourceApi.kt +++ b/src/backend/ci/core/worker/worker-api-sdk/src/main/kotlin/com/tencent/devops/worker/common/api/quota/QuotaResourceApi.kt @@ -41,8 +41,7 @@ class QuotaResourceApi : AbstractBuildResourceApi(), QuotaApi { retryCount: Int ): Result { try { - val path = "/ms/dispatch/api/build/quotas/running/agent/projects/$projectId/" + - "builds/$buildId/vmSeqs/$vmSeqId?executeCount=$executeCount" + val path = "/ms/dispatch/api/build/quotas/running/agent/shutdown?executeCount=$executeCount" val request = buildDelete(path) val errorMessage = "Quota上报agent运行结束状态失败" val responseContent = request( @@ -67,8 +66,7 @@ class QuotaResourceApi : AbstractBuildResourceApi(), QuotaApi { retryCount: Int ): Result { try { - val path = "/ms/dispatch/api/build/quotas/running/agent/projects/$projectId/" + - "builds/$buildId/vmSeqs/$vmSeqId?executeCount=$executeCount" + val path = "/ms/dispatch/api/build/quotas/running/agent/start?executeCount=$executeCount" val request = buildPost(path) val errorMessage = "Quota上报agent开始运行失败" val responseContent = request(