From b370b5fabc440e9d99c544edd02286c3f1320972 Mon Sep 17 00:00:00 2001 From: FredrikP <57641333+fredrikpf@users.noreply.github.com> Date: Mon, 6 Jan 2025 12:11:43 +0100 Subject: [PATCH] =?UTF-8?q?legg=20til=20thread.sleep()=20s=C3=A5nn=20kalle?= =?UTF-8?q?t=20som=20patcher=20akt=C3=B8rId=20f=C3=A5r=20tid=20til=20?= =?UTF-8?q?=C3=A5=20commite=20til=20db=20(#1242)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../baks/mottak/task/JournalhendelseBarnetrygdRutingTask.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/no/nav/familie/baks/mottak/task/JournalhendelseBarnetrygdRutingTask.kt b/src/main/kotlin/no/nav/familie/baks/mottak/task/JournalhendelseBarnetrygdRutingTask.kt index a16a6c19..efb2cdb1 100644 --- a/src/main/kotlin/no/nav/familie/baks/mottak/task/JournalhendelseBarnetrygdRutingTask.kt +++ b/src/main/kotlin/no/nav/familie/baks/mottak/task/JournalhendelseBarnetrygdRutingTask.kt @@ -82,6 +82,8 @@ class JournalhendelseBarnetrygdRutingTask( val fagsakId = baSakClient.hentFagsaknummerPåPersonident(personIdent) + Thread.sleep(1000L) + val (baSak, infotrygdSak) = brukersIdent?.run { søkEtterSakIBaSakOgInfotrygd(this) } ?: Pair(null, null) val brukerHarFagsakIBaSak = baSak.finnes() val brukerHarSakIInfotrygd = infotrygdSak.finnes()