Merge branch 'main' into iain/objectsender-expose-transport-options

This commit is contained in:
Iain Sproat 2024-08-26 09:59:21 +01:00
Родитель 9d19c4f11c d36e2036aa
Коммит 5cbfc8bd43
Не найден ключ, соответствующий данной подписи
5 изменённых файлов: 16 добавлений и 5 удалений

Просмотреть файл

@ -10,7 +10,9 @@ module.exports = require('knex')({
},
pool: {
min: 0,
max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_FILE_IMPORT_SERVICE) || 1
max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_FILE_IMPORT_SERVICE) || 1,
acquireTimeoutMillis: 16000, //allows for 3x creation attempts plus idle time between attempts
createTimeoutMillis: 5000
}
// migrations are in managed in the server package
})

Просмотреть файл

@ -170,7 +170,7 @@ const showActionsMenu = ref(false)
const containerClasses = computed(() => {
const classParts = [
'group rounded-xl bg-foundation border border-outline-3 hover:border-outline-5 w-full'
'group rounded-xl bg-foundation border border-outline-3 hover:border-outline-5 w-full z-[0]'
]
if (versionCount.value > 0) {

Просмотреть файл

@ -10,7 +10,9 @@ module.exports = require('knex')({
},
pool: {
min: 0,
max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_PREVIEW_SERVICE) || 2
max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_PREVIEW_SERVICE) || 2,
acquireTimeoutMillis: 16000, //allows for 3x creation attempts plus idle time between attempts
createTimeoutMillis: 5000
}
// migrations are in managed in the server package
})

Просмотреть файл

@ -92,7 +92,12 @@ const commonConfig = {
},
// we wish to avoid leaking sql queries in the logs: https://knexjs.org/guide/#compilesqlonerror
compileSqlOnError: false,
pool: { min: 0, max: postgresMaxConnections() }
pool: {
min: 0,
max: postgresMaxConnections(),
acquireTimeoutMillis: 16000, //allows for 3x creation attempts plus idle time between attempts
createTimeoutMillis: 5000
}
}
/** @type {Object<string, import('knex').Knex.Config>} */

Просмотреть файл

@ -10,7 +10,9 @@ module.exports = require('knex')({
},
pool: {
min: 0,
max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_WEBHOOK_SERVICE) || 1
max: parseInt(process.env.POSTGRES_MAX_CONNECTIONS_WEBHOOK_SERVICE) || 1,
acquireTimeoutMillis: 16000, //allows for 3x creation attempts plus idle time between attempts
createTimeoutMillis: 5000
}
// migrations are in managed in the server package
})