Skip to content

Commit

Permalink
Merge pull request #5819 from sawyersong2/issue5818_github_branch
Browse files Browse the repository at this point in the history
bug: 构建镜像扫描输入字段缺失fix #5818
  • Loading branch information
mingshewhe authored Dec 20, 2021
2 parents 9db520e + b46f8ce commit 12631ad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class PipelineDockerBuildDao {
return dslContext.selectFrom(this)
.where(STATUS.eq(2))
.and(DOCKER_IP.notEqual(""))
.and(UPDATED_TIME.lessOrEqual(timestampSubDay(2)))
.and(UPDATED_TIME.lessOrEqual(timestampSubDay(7)))
.fetch()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ class DockerHostBuildService @Autowired constructor(
* 每天执行一次,更新大于七天状态还是running的pool,以及大于七天状态还是running的build history,并主动关机
*/
@Scheduled(initialDelay = 120 * 1000, fixedDelay = 3600 * 24 * 1000)
@Deprecated("this function is deprecated!")
fun updateTimeoutPoolTask() {
var message = ""
val redisLock = RedisLock(redisOperation, "update_timeout_pool_task_nogkudla", 5L)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class DockerService @Autowired constructor(
future == null -> Pair(Status.NO_EXISTS, "")
future.isDone -> {
when {
future.get().first -> Pair(Status.SUCCESS, "")
future.get().first -> Pair(Status.SUCCESS, future.get().second ?: "")
else -> Pair(Status.FAILURE, future.get().second ?: "")
}
}
Expand Down

0 comments on commit 12631ad

Please sign in to comment.