Skip to content

Commit

Permalink
reverting scheduler changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnabmitra committed Dec 31, 2024
1 parent 873564f commit 2577dc3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class ScheduledTaskService(
}.start()
}

@Scheduled(initialDelay = 0L, fixedDelay = 300000L) // Every 5 minutes
@Scheduled(initialDelay = 0L, fixedDelay = 5000L)
fun updateLatestBlockHeightJob() {
val index = getBlockIndex()
val startHeight = blockService.getLatestBlockHeight()
Expand Down Expand Up @@ -263,7 +263,7 @@ class ScheduledTaskService(
tokenService.updateAndSaveTokenHistoricalData(startDate, today)
}

@Scheduled(initialDelay = 0L, fixedDelay = 600000L) // Every 5 minutes
@Scheduled(initialDelay = 0L, fixedDelay = 5000L)
fun updateTokenLatest() {
val today = DateTime.now().withZone(DateTimeZone.UTC)
val startDate = today.minusDays(1)
Expand Down Expand Up @@ -349,7 +349,7 @@ class ScheduledTaskService(
}
}

@Scheduled(initialDelay = 5000L, fixedDelay = 300000L) // Every 5 minutes
@Scheduled(initialDelay = 5000L, fixedDelay = 5000L)
fun startAccountProcess() {
processAccountRecords()
}
Expand Down

0 comments on commit 2577dc3

Please sign in to comment.