mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-11 20:27:43 +02:00
Add client configurable timeouts
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
// Check if we're in Node.js development mode
|
||||
const isDevelopment = typeof process !== 'undefined' && process.env?.NODE_ENV === 'development'
|
||||
|
||||
// In development mode with Node.js, use a huge timeout (1 hour) to allow for debugging
|
||||
const devAliveTimeout = 3600 // 1 hour in seconds
|
||||
|
||||
export const timeouts = {
|
||||
aliveTimeout: 3, // seconds - timeout for detecting dead agents/clients
|
||||
aliveTimeout: isDevelopment ? devAliveTimeout : 3, // seconds - timeout for detecting dead agents/clients
|
||||
unusedContainerTimeout: 5, // 10 seconds for container to be terminated because of being unused
|
||||
pingInterval: 1 // seconds - how often to ping agents
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user