File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ import org.springframework.stereotype.Component
1010import java.util.concurrent.TimeUnit
1111
1212@Component
13+ @ConditionalOnProperty(
14+ value = [" klibs.scheduling.fill-version-type.enabled" ],
15+ havingValue = " true" ,
16+ )
1317class PackageVersionTypeJob (private val packageService : PackageService ) {
1418
1519 private val logger = LoggerFactory .getLogger(PackageVersionTypeJob ::class .java)
Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ import io.micrometer.core.annotation.Timed
55import net.javacrumbs.shedlock.core.LockAssert
66import net.javacrumbs.shedlock.spring.annotation.SchedulerLock
77import org.slf4j.LoggerFactory
8+ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
89import org.springframework.scheduling.annotation.Scheduled
910import org.springframework.stereotype.Component
1011import java.util.concurrent.TimeUnit
1112
1213@Component
14+ @ConditionalOnProperty(" klibs.indexing" , havingValue = " true" )
1315class RefreshDependentCountJob (
1416 private val projectRepository : ProjectRepository ,
1517) {
Original file line number Diff line number Diff line change 7878 scheduling :
7979 process-indexing-queue :
8080 enabled : ${PROCESS_INDEXING_QUEUE_ENABLED:true}
81+ fill-version-type :
82+ enabled : ${FILL_VERSION_TYPE_ENABLED:true}
8183 indexing-configuration :
8284 executor :
8385 thread-count : 2
Original file line number Diff line number Diff line change 44 scheduling :
55 process-indexing-queue :
66 enabled : false
7+ fill-version-type :
8+ enabled : false
79
810spring :
911 sql :
You can’t perform that action at this time.
0 commit comments