Skip to content

Commit

Permalink
lisätty tilapäinen 10min viive
Browse files Browse the repository at this point in the history
  • Loading branch information
jkorri committed Dec 12, 2024
1 parent a070c4f commit 7bdcf39
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,13 @@ public DeferredResult<ResponseEntity<LaskeDTO>> valintalaskennanLahtotiedot(
@RequestParam(value = "withHakijaRyhmat", required = false, defaultValue = "false")
Boolean withHakijaRyhmat) {
authorityCheckService.checkAuthorizationForHaku(hakuOid, valintalaskentaAllowedRoles);
DeferredResult<ResponseEntity<LaskeDTO>> result = new DeferredResult<>(10 * 60 * 1000l);
DeferredResult<ResponseEntity<LaskeDTO>> result = new DeferredResult<>(30 * 60 * 1000l);

Date nyt = new Date();

try {
Thread.sleep(10 * 60 * 1000l);

result.onTimeout(
() -> {
LOG.error(
Expand Down

0 comments on commit 7bdcf39

Please sign in to comment.