Skip to content

Commit 324ac79

Browse files
committed
start ApiInnsending bare i dev
1 parent 5cc102b commit 324ac79

File tree

1 file changed

+10
-7
lines changed
  • apps/innsending/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/innsending

1 file changed

+10
-7
lines changed

apps/innsending/src/main/kotlin/no/nav/helsearbeidsgiver/inntektsmelding/innsending/App.kt

+10-7
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@ fun RapidsConnection.createInnsending(redisConnection: RedisConnection): RapidsC
4040
),
4141
).connect(this)
4242

43-
logger.info("Starter ${ApiInnsendingService::class.simpleName}...")
44-
ServiceRiverStateless(
45-
ApiInnsendingService(
46-
rapid = this,
47-
redisStore = RedisStore(redisConnection, RedisPrefix.ApiInnsending),
48-
),
49-
).connect(this)
43+
// TODO: Enable i prod når vi kobler til nytt kafka-topic
44+
if ("dev-gcp".equals(System.getenv()["NAIS_CLUSTER_NAME"], ignoreCase = true)) {
45+
logger.info("Starter ${ApiInnsendingService::class.simpleName}...")
46+
ServiceRiverStateless(
47+
ApiInnsendingService(
48+
rapid = this,
49+
redisStore = RedisStore(redisConnection, RedisPrefix.ApiInnsending),
50+
),
51+
).connect(this)
52+
}
5053

5154
logger.info("Starter ${KvitteringService::class.simpleName}...")
5255
ServiceRiverStateful(

0 commit comments

Comments
 (0)