Skip to content

Commit

Permalink
feat: task失败可以立即重试 TencentBlueKing#6400
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzcao committed Mar 24, 2022
1 parent d634659 commit d5354e4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class PipelineRetryFacadeService @Autowired constructor(
buildId: String,
taskId: String? = null
): Boolean {
logger.info("runningBuildTaskRetry $userId|$projectId|$pipelineId|$buildId|$taskId}")
if (taskId.isNullOrEmpty()) {
// 抛异常
throw ParamBlankException("Invalid taskId")
Expand All @@ -79,7 +80,7 @@ class PipelineRetryFacadeService @Autowired constructor(
// 此处请求可能早于关机到达。 若还未关机就点击重试,提示用户稍后再试
val containerInfo = pipelineContainerService.getContainer(
projectId = projectId,
buildId = pipelineId,
buildId = buildId,
containerId = taskInfo.containerId,
stageId = null
)
Expand Down

0 comments on commit d5354e4

Please sign in to comment.