Skip to content

Commit

Permalink
change scheduling type and update schedule thread pool to 25 since we…
Browse files Browse the repository at this point in the history
… have 19 jobs that may overlap
  • Loading branch information
nullpointer0x00 committed Aug 20, 2024
1 parent a9ee35f commit eb62e95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@ class AsyncService(
tokenService.updateTokenDistributionStats(UTILITY_TOKEN)
}

@Scheduled(cron = "0/5 * * * * ?") // Every 5 seconds
@Scheduled(initialDelay = 0L, fixedDelay = 5000L)
fun updateSpotlight() = explorerService.createSpotlight()

@Scheduled(cron = "*/30 * * * * ?") // Every 30 seconds
@Scheduled(initialDelay = 0L, fixedDelay = 30000L)
fun retryBlockTxs() {
logger.info("Retrying block/tx records")
BlockTxRetryRecord.getRecordsToRetry().map { height ->
Expand Down
2 changes: 1 addition & 1 deletion service/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ spring.datasource.driver-class-name=org.postgresql.Driver
logging.level.io.provenance.timed=warn
logging.level.Exposed=ERROR

spring.task.scheduling.pool.size=20
spring.task.scheduling.pool.size=25

spring.mvc.pathmatch.matching-strategy=ant_path_matcher

0 comments on commit eb62e95

Please sign in to comment.