Skip to content

Commit

Permalink
PI-2619 Validate JDBC connections before use + delay dev startup (#4427)
Browse files Browse the repository at this point in the history
* PI-2619 Validate JDBC connections before use

* Delay startup time in dev
  • Loading branch information
marcus-bcl authored Nov 14, 2024
1 parent 2d90979 commit 91cf665
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ filter {
jdbc_connection_string => "${JDBC_CONNECTION_STRING}"
jdbc_user => "${JDBC_USER}"
jdbc_password => "${JDBC_PASSWORD}"
jdbc_validate_connection => true
jdbc_validation_timeout => 120
statement => "${INCREMENTAL_STATEMENT_SQL}"
use_prepared_statements => true
prepared_statement_name => "search_indexer_contact_incremental"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ filter {
jdbc_connection_string => "${JDBC_CONNECTION_STRING}"
jdbc_user => "${JDBC_USER}"
jdbc_password => "${JDBC_PASSWORD}"
jdbc_validate_connection => true
jdbc_validation_timeout => 120
statement => "${INCREMENTAL_STATEMENT_SQL}"
parameters => { "offender_id" => "%{offenderId}" }
target => "db"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ generic-service:

scheduledDowntime:
enabled: true
startup: 0 8 * * 1-5 # delayed startup to match Delius DB startup time

env:
SENTRY_ENVIRONMENT: dev
Expand Down

0 comments on commit 91cf665

Please sign in to comment.