Skip to content

Commit

Permalink
bug: 任务执行超时时间调整 #2846
Browse files Browse the repository at this point in the history
  • Loading branch information
zacYL authored Dec 12, 2024
1 parent 4429dfc commit cdc5571
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import com.tencent.bkrepo.job.batch.utils.RepositoryCommonUtils
import com.tencent.bkrepo.job.config.properties.NodeCopyJobProperties
import com.tencent.bkrepo.job.exception.JobExecuteException
import com.tencent.bkrepo.repository.constant.DEFAULT_STORAGE_CREDENTIALS_KEY
import java.time.Duration
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.data.mongodb.core.query.Criteria
import org.springframework.data.mongodb.core.query.Query
Expand All @@ -60,6 +61,8 @@ class NodeCopyJob(
return super.start()
}

override fun getLockAtMostFor(): Duration = Duration.ofDays(3)

override fun collectionNames(): List<String> {
return (0 until SHARDING_COUNT)
.map { "$COLLECTION_NAME_PREFIX$it" }
Expand Down

0 comments on commit cdc5571

Please sign in to comment.