Merge pull request #4418 from betagouv/add_query_timeout

Suppression des requètes qui font plus de 60s en base
This commit is contained in:
LeSim 2019-10-17 17:38:36 +02:00 committed by GitHub
commit d84a966f45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,11 @@ default: &default
encoding: unicode
pool: <%= ENV.fetch("DB_POOL") { 5 } %>
timeout: 5000
# sql queries will be killed after 60s
# we should reduce this number
# A bigger timeout can be set for jobs
variables:
statement_timeout: <%= ENV['PG_STATEMENT_TIMEOUT'] || 60000 %>
development:
<<: *default