Skip to content

Commit

Permalink
Enable nightly duplicate check
Browse files Browse the repository at this point in the history
RISDEV-5912
  • Loading branch information
anne-ds committed Feb 11, 2025
1 parent db5fd70 commit d0bd81a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import java.util.Optional;
import java.util.UUID;
import lombok.extern.slf4j.Slf4j;
import net.javacrumbs.shedlock.spring.annotation.SchedulerLock;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
Expand Down Expand Up @@ -70,8 +72,8 @@ public void checkDuplicates(String docNumber) {
}

// Runs every night at 05:05:10
// @Scheduled(cron = "10 5 5 * * *")
// @SchedulerLock(name = "duplicate-check-job", lockAtMostFor = "PT15M")
@Scheduled(cron = "10 5 5 * * *")
@SchedulerLock(name = "duplicate-check-job", lockAtMostFor = "PT15M")
@Transactional
@Override
public void checkAllDuplicates() {
Expand Down

0 comments on commit d0bd81a

Please sign in to comment.