diff --git a/src/main/java/fi/vm/sade/valinta/kooste/valintalaskenta/resource/ValintalaskentaKerrallaResource.java b/src/main/java/fi/vm/sade/valinta/kooste/valintalaskenta/resource/ValintalaskentaKerrallaResource.java index aaaadf768..a5b437ccb 100644 --- a/src/main/java/fi/vm/sade/valinta/kooste/valintalaskenta/resource/ValintalaskentaKerrallaResource.java +++ b/src/main/java/fi/vm/sade/valinta/kooste/valintalaskenta/resource/ValintalaskentaKerrallaResource.java @@ -78,11 +78,13 @@ public DeferredResult> valintalaskennanLahtotiedot( @RequestParam(value = "withHakijaRyhmat", required = false, defaultValue = "false") Boolean withHakijaRyhmat) { authorityCheckService.checkAuthorizationForHaku(hakuOid, valintalaskentaAllowedRoles); - DeferredResult> result = new DeferredResult<>(10 * 60 * 1000l); + DeferredResult> result = new DeferredResult<>(30 * 60 * 1000l); Date nyt = new Date(); try { + Thread.sleep(10 * 60 * 1000l); + result.onTimeout( () -> { LOG.error(