Tighten startup behavior defaults
This commit is contained in:
parent
9da416dbe4
commit
d1d81fd478
|
|
@ -1,9 +1,12 @@
|
||||||
package at.procon.ted.startup;
|
package at.procon.ted.startup;
|
||||||
|
|
||||||
|
import at.procon.dip.runtime.condition.ConditionalOnRuntimeMode;
|
||||||
|
import at.procon.dip.runtime.config.RuntimeMode;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.boot.ApplicationArguments;
|
import org.springframework.boot.ApplicationArguments;
|
||||||
import org.springframework.boot.ApplicationRunner;
|
import org.springframework.boot.ApplicationRunner;
|
||||||
|
import org.springframework.context.annotation.Profile;
|
||||||
import org.springframework.core.annotation.Order;
|
import org.springframework.core.annotation.Order;
|
||||||
import org.springframework.jdbc.core.JdbcTemplate;
|
import org.springframework.jdbc.core.JdbcTemplate;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
@ -19,6 +22,7 @@ import org.springframework.stereotype.Component;
|
||||||
@Component
|
@Component
|
||||||
@Order(1) // Run before other startup runners
|
@Order(1) // Run before other startup runners
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
|
@ConditionalOnRuntimeMode(RuntimeMode.LEGACY)
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class OrganizationSchemaFixRunner implements ApplicationRunner {
|
public class OrganizationSchemaFixRunner implements ApplicationRunner {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ dip:
|
||||||
max-chunks-per-document: 12
|
max-chunks-per-document: 12
|
||||||
# Startup backfill limit for missing lexical vectors
|
# Startup backfill limit for missing lexical vectors
|
||||||
startup-lexical-backfill-limit: 500
|
startup-lexical-backfill-limit: 500
|
||||||
scheduled-lexical-backfill-enabled: true
|
scheduled-lexical-backfill-enabled: false
|
||||||
scheduled-lexical-backfill-delay-ms: 30000
|
scheduled-lexical-backfill-delay-ms: 30000
|
||||||
scheduled-lexical-backfill-batch-size: 200
|
scheduled-lexical-backfill-batch-size: 200
|
||||||
# Number of top hits per engine returned by /search/debug
|
# Number of top hits per engine returned by /search/debug
|
||||||
|
|
@ -333,8 +333,8 @@ dip:
|
||||||
leitstand:
|
leitstand:
|
||||||
enabled: false
|
enabled: false
|
||||||
startup-sync-enabled: false
|
startup-sync-enabled: false
|
||||||
startup-selective-materialization-enabled: true
|
startup-selective-materialization-enabled: false
|
||||||
selective-materialization-person-dbk: 100920031023144811001000
|
selective-materialization-person-dbk: #100920031023144811001000
|
||||||
selective-materialization-person-number:
|
selective-materialization-person-number:
|
||||||
selective-materialization-build-projection: true
|
selective-materialization-build-projection: true
|
||||||
create-canonical-time-entries: true
|
create-canonical-time-entries: true
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ spring:
|
||||||
order_updates: true
|
order_updates: true
|
||||||
|
|
||||||
flyway:
|
flyway:
|
||||||
enabled: true
|
enabled: false
|
||||||
locations: classpath:db/migration
|
locations: classpath:db/migration
|
||||||
baseline-on-migrate: true
|
baseline-on-migrate: true
|
||||||
create-schemas: true
|
create-schemas: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue