Skip to content

Commit

Permalink
remove delete prints
Browse files Browse the repository at this point in the history
  • Loading branch information
egekocabas committed Nov 17, 2024
1 parent 2bf2473 commit 18e3917
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ public void syncData() {

// Get last sync time
var lastSync = dataSyncStatusRepository.findTopByOrderByStartTimeDesc();
System.out.println("lastSync: " + lastSync);
if (lastSync.isPresent()) {
var lastSyncTime = lastSync.get().getStartTime();
cutoffDate = lastSyncTime.isAfter(cutoffDate) ? lastSyncTime : cutoffDate;
}

var cooldownTime = OffsetDateTime.now().minusMinutes(runOnStartupCooldownInMinutes);
System.out.println("cooldownTime: " + cooldownTime);
if (lastSync.isPresent() && lastSync.get().getStartTime().isAfter(cooldownTime)) {
logger.info("Skipping sync, last sync was less than {} minutes ago", runOnStartupCooldownInMinutes);
return;
Expand Down

0 comments on commit 18e3917

Please sign in to comment.