Skip to content

Commit

Permalink
feat: 流水线Job配额管理 TencentBlueKing#5154
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyersong2 committed Oct 15, 2021
1 parent 497c199 commit 44228c9
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ class QuotaResourceApi : AbstractBuildResourceApi(), QuotaApi {
retryCount: Int
): Result<Boolean> {
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(
Expand All @@ -67,8 +66,7 @@ class QuotaResourceApi : AbstractBuildResourceApi(), QuotaApi {
retryCount: Int
): Result<Boolean> {
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(
Expand Down

0 comments on commit 44228c9

Please sign in to comment.