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 Original file line number Diff line number Diff line change @@ -40,13 +40,16 @@ fun RapidsConnection.createInnsending(redisConnection: RedisConnection): RapidsC
40
40
),
41
41
).connect(this )
42
42
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
+ }
50
53
51
54
logger.info(" Starter ${KvitteringService ::class .simpleName} ..." )
52
55
ServiceRiverStateful (
You can’t perform that action at this time.
0 commit comments